From 69cbb09c5f10c8da0091bac367aae6ab55649629 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Tue, 22 Mar 2016 10:26:31 -0400 Subject: [PATCH 1/3] cdnjs spidering wrong thing? --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2944d103..27020f62 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mithril", - "description": "Mithril.js beta build - use this to help us test the releases before they are released", + "description": "Mithril.js - A Javascript Framework for Building Brilliant Applications", "version": "0.2.3", "homepage": "http://mithril.js.org", "license": "MIT", From 82d65b076a672d56f2172059596aea947cac1aea Mon Sep 17 00:00:00 2001 From: yuyang Date: Fri, 25 Mar 2016 12:46:58 +0800 Subject: [PATCH 2/3] change new Array => [] --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index 6505a74e..3b931f00 100644 --- a/mithril.js +++ b/mithril.js @@ -1966,7 +1966,7 @@ m.sync = function (args) { var deferred = m.deferred() var outstanding = args.length - var results = new Array(outstanding) + var results = [] var method = "resolve" function synchronizer(pos, resolved) { From 07244b19998379dd956f8d2a0f0f22ce54ae0ffe Mon Sep 17 00:00:00 2001 From: impinball Date: Mon, 28 Mar 2016 06:28:51 -0400 Subject: [PATCH 3/3] Serialize arguments correctly in m.component --- mithril.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index 6505a74e..4a43d2c1 100644 --- a/mithril.js +++ b/mithril.js @@ -1348,7 +1348,11 @@ } m.component = function (component) { - var args = [].slice.call(arguments, 1) + var args = new Array(arguments.length - 1) + + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i] + } return parameterize(component, args) }