Skip to content

Commit

Permalink
Fix for jQuery.event.handle is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Jan 13, 2014
1 parent 1ec6f1e commit 6395f99
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion js/jquery.event.frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@ if (!jQuery.event.special.frame) {
},
handler: function(event){
// let jQuery handle the calling of event handlers
jQuery.event.handle.apply(this, arguments);

// In jQuery >= 1.9.0 jQuery.event.handle is remove, see:
// http://jquery.com/upgrade-guide/1.9/#other-undocumented-properties-and-methods
if (jQuery.event.handle) {
jQuery.event.handle.apply(this, arguments);
} else {
jQuery.event.dispatch.apply(this, arguments);
}
}
};
}
Expand Down

0 comments on commit 6395f99

Please sign in to comment.