style
This commit is contained in:
parent
dcbb82f7d2
commit
7732f28cad
1 changed files with 1 additions and 1 deletions
|
|
@ -588,7 +588,7 @@ var m = (function app(window, undefined) {
|
||||||
var controller = function() {
|
var controller = function() {
|
||||||
return (component.controller || noop).apply(this, args) || this;
|
return (component.controller || noop).apply(this, args) || this;
|
||||||
};
|
};
|
||||||
if (component.controller) controller.prototype = component.controller.prototype
|
if (component.controller) controller.prototype = component.controller.prototype;
|
||||||
var view = function(ctrl) {
|
var view = function(ctrl) {
|
||||||
for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);
|
for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);
|
||||||
return component.view.apply(component, args ? [ctrl].concat(args) : [ctrl]);
|
return component.view.apply(component, args ? [ctrl].concat(args) : [ctrl]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue