Skip to content

Commit d4848e3

Browse files
committed
Check for mandatory 'delegate' option
Close mar10#115
1 parent b8f8bf6 commit d4848e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jquery.ui-contextmenu.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ $.widget("moogle.contextmenu", {
6969
this.extraData = {};
7070
this.previousFocus = null;
7171

72+
if (opts.delegate == null) {
73+
$.error("ui-contextmenu: Missing required option `delegate`.");
74+
}
7275
if (opts.preventSelect) {
7376
// Create a global style for all potential menu targets
7477
// If the contextmenu was bound to `document`, we apply the

0 commit comments

Comments
 (0)