don't trigger event after timeout, see #731
This commit is contained in:
parent
e68b1e163b
commit
b5d5936e59
1 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ Ox.Event = (function() {
|
||||||
*/
|
*/
|
||||||
that.trigger = function(self) {
|
that.trigger = function(self) {
|
||||||
var args = arguments, element = this;
|
var args = arguments, element = this;
|
||||||
self.eventHandlers && setTimeout(function() {
|
if (self.eventHandlers) {
|
||||||
Ox.forEach(Ox.makeObject(Ox.slice(args, 1)), function(data, event) {
|
Ox.forEach(Ox.makeObject(Ox.slice(args, 1)), function(data, event) {
|
||||||
var triggered = event.split('.');
|
var triggered = event.split('.');
|
||||||
eventHandlers.forEach(function(callback) {
|
eventHandlers.forEach(function(callback) {
|
||||||
|
@ -137,7 +137,7 @@ Ox.Event = (function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
return that;
|
return that;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue