From 7732f28cad768e20f5faabc9fa9511703616e5fd Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Tue, 14 Jul 2015 19:11:45 -0400 Subject: [PATCH] style --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index 18a7262c..b74fb61e 100644 --- a/mithril.js +++ b/mithril.js @@ -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]);