Permalink
Browse files

Merge pull request #75 from tersmitten/fix-for-jquery-event-handle-is…

…-undefined

Fix for jQuery.event.handle is undefined
  • Loading branch information...
2 parents 1ec6f1e + 6395f99 commit 36f695ce7714f396424a711b1d9f57f184c76a0b @stephband committed Jan 13, 2014
Showing with 8 additions and 1 deletion.
  1. +8 −1 js/jquery.event.frame.js
View
@@ -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);
+ }
}
};
}

0 comments on commit 36f695c

Please sign in to comment.