Skip to content

Commit

Permalink
Merge pull request #75 from tersmitten/fix-for-jquery-event-handle-is…
Browse files Browse the repository at this point in the history
…-undefined

Fix for jQuery.event.handle is undefined
  • Loading branch information
stephband committed Jan 13, 2014
2 parents 1ec6f1e + 6395f99 commit 36f695c
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 36f695c

Please sign in to comment.