Merge pull request #979 from tivac/varadic-m-for-loop

Use for-loop to map arguments instead of slice
This commit is contained in:
Leo Horie 2016-03-09 18:02:06 -05:00
commit 3f786af94d

View file

@ -141,7 +141,11 @@
* or splat (optional)
*/
function m(tag, pairs) {
var args = [].slice.call(arguments, 1)
var args = []
for (var i = 1, length = arguments.length; i < length; i++) {
args[i - 1] = arguments[i]
}
if (isObject(tag)) return parameterize(tag, args)