don't need partial ability when deferring config calling
This commit is contained in:
parent
a87e2a1414
commit
18dcfce5e2
1 changed files with 5 additions and 5 deletions
10
mithril.js
10
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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue