Open listenrightmeow opened 10 years ago
I don't have permissions to the repo to fire a pull request.
Fidel.prototype.emit = function(eventName, data, namespaced) {
- var ns = (namespaced) ? this.namespace : '';
- this.el.trigger(eventName+ns, data);
+ var self = this,
+ ns = (namespaced) ? this.namespace : '';
+
+ setTimeout(function() {
+ self.el.trigger(eventName+ns, data);
+ }, 0);
};
Only test cases 3 & 4 will pass - on all branches including v3