diff --git a/agility.js b/agility.js index 65c1f16..bdc58fa 100644 --- a/agility.js +++ b/agility.js @@ -922,7 +922,7 @@ var events = eventStr.split(';'); var handler = object.controller[eventStr]; $.each(events, function(i, ev){ - ev = ev.trim(); + ev = $.trim(ev); bindEvent(ev, handler); }); }