This commit is contained in:
Leo Horie 2015-07-14 19:11:45 -04:00
parent dcbb82f7d2
commit 7732f28cad

View file

@ -588,7 +588,7 @@ var m = (function app(window, undefined) {
var controller = function() {
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) {
for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);
return component.view.apply(component, args ? [ctrl].concat(args) : [ctrl]);