don't need partial ability when deferring config calling

This commit is contained in:
Leo Horie 2014-09-01 10:47:26 -04:00
parent a87e2a1414
commit 18dcfce5e2

View file

@ -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") {