Merge branch 'next' of github.com:lhorie/mithril.js into next

This commit is contained in:
Leo Horie 2016-03-16 01:07:07 -04:00
commit 64d1ce1d7d
12 changed files with 37 additions and 211 deletions

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)