diff --git a/controller/controller.js b/controller/controller.js index f3bd8476..a0d2777a 100644 --- a/controller/controller.js +++ b/controller/controller.js @@ -53,6 +53,7 @@ steal('jquery/class', 'jquery/lang/string', 'jquery/event/destroyed', function( var method = typeof name == "string" ? context[name] : name; return function() { context.called = name; + if (!$.isFunction(method)) return $.noop; return method.apply(context, [this.nodeName ? $(this) : this].concat( slice.call(arguments, 0) ) ); }; },