From 6395f993f44cb81fa9b928b0db9e7cd4c4c85cea Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Mon, 13 Jan 2014 15:52:44 +0100 Subject: [PATCH] Fix for jQuery.event.handle is undefined --- js/jquery.event.frame.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/jquery.event.frame.js b/js/jquery.event.frame.js index 3afe6c7..10f6688 100644 --- a/js/jquery.event.frame.js +++ b/js/jquery.event.frame.js @@ -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); + } } }; }