diff --git a/source/Ox.UI/js/Core/Event.js b/source/Ox.UI/js/Core/Event.js index 2ba5e409..d81efa7d 100644 --- a/source/Ox.UI/js/Core/Event.js +++ b/source/Ox.UI/js/Core/Event.js @@ -121,7 +121,7 @@ Ox.Event = (function() { */ that.trigger = function(self) { var args = arguments, element = this; - self.eventHandlers && setTimeout(function() { + if (self.eventHandlers) { Ox.forEach(Ox.makeObject(Ox.slice(args, 1)), function(data, event) { var triggered = event.split('.'); eventHandlers.forEach(function(callback) { @@ -137,7 +137,7 @@ Ox.Event = (function() { }); }); }); - }); + } return that; };