Stop subsequent redraws appending arguments to parameterized components
This commit is contained in:
parent
9a315fb116
commit
2dbf7b9f0c
1 changed files with 2 additions and 2 deletions
|
|
@ -558,8 +558,8 @@ var m = (function app(window, undefined) {
|
|||
return (component.controller || noop).apply(this, args) || this
|
||||
}
|
||||
var view = function(ctrl) {
|
||||
if (arguments.length > 1) args = args.concat([].slice.call(arguments, 1))
|
||||
return component.view.apply(component, args ? [ctrl].concat(args) : [ctrl])
|
||||
var currentArgs = arguments.length > 1 ? args.concat([].slice.call(arguments, 1)) : args
|
||||
return component.view.apply(component, currentArgs ? [ctrl].concat(currentArgs) : [ctrl])
|
||||
}
|
||||
view.$original = component.view
|
||||
var output = {controller: controller, view: view}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue