Skip to content

Instantly share code, notes, and snippets.

@KernelLeak
KernelLeak / jquery.contextMenu.js.eventhandler-undefined-checks.diff
Created January 24, 2013 10:10
Patch for IE8's event handler problems.
Index: jquery.contextMenu.js
===================================================================
--- jquery.contextMenu.js (revision 1014)
+++ jquery.contextMenu.js (working copy)
@@ -403,8 +403,13 @@
e.stopPropagation();
},
key: function(e) {
- var opt = $currentTrigger.data('contextMenu') || {};
+ if (!$currentTrigger)