From 18dcfce5e2ee087e9bb420832175ec7e13dc470d Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Mon, 1 Sep 2014 10:47:26 -0400 Subject: [PATCH] don't need partial ability when deferring config calling --- mithril.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mithril.js b/mithril.js index 161ea182..83e12fda 100644 --- a/mithril.js +++ b/mithril.js @@ -199,12 +199,12 @@ Mithril = m = new function app(window, undefined) { var context = cached.configContext = cached.configContext || {} // bind - configs.push((function (data, node, isNew, context, cached) { - var args = [node, !isNew, context, cached] - return function () { - return data.attrs["config"].apply(data, args.concat(Array.prototype.slice.call(arguments, 0))) + var callback = function(data, args) { + return function() { + return data.attrs["config"].apply(data, args) } - })(data, node, isNew, context, cached)) + } + configs.push(callback(data, [node, !isNew, context, cached])) } } else if (typeof dataType != "function") {