Skip to content

Commit 0f72e8d

Browse files
committed
Merge branch 'Bragolgirith-master'
closes swisnl#244
2 parents c824a51 + 68a0650 commit 0f72e8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.contextMenu.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ $.fn.contextMenu = function(operation) {
12281228
} else if (operation.x && operation.y) {
12291229
this.first().trigger($.Event("contextmenu", {pageX: operation.x, pageY: operation.y}));
12301230
} else if (operation === "hide") {
1231-
var $menu = this.data('contextMenu').$menu;
1231+
var $menu = this.first().data('contextMenu') ? this.first().data('contextMenu').$menu : null;
12321232
$menu && $menu.trigger('contextmenu:hide');
12331233
} else if (operation === "destroy") {
12341234
$.contextMenu("destroy", {context: this});

0 commit comments

Comments
 (0)