Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 960a841 commit e9cd6dcCopy full SHA for e9cd6dc
src/jqLite.js
@@ -740,9 +740,9 @@ function createEventHandler(element, events) {
740
// Copy event handlers in case event handlers array is modified during execution.
741
var eventHandlersCopy = shallowCopy(events[type || event.type] || []);
742
743
- forEach(eventHandlersCopy, function(fn) {
744
- fn.call(element, event);
745
- });
+ for (var i = 0, ii = eventHandlersCopy.length; i < ii; i++) {
+ eventHandlersCopy[i].call(element, event);
+ }
746
747
// Remove monkey-patched methods (IE),
748
// as they would cause memory leaks in IE8.
0 commit comments