Skip to content

Commit 928f4cb

Browse files
committed
Added comment to identify issue 18 and 13 in the fix.
1 parent e40e5fd commit 928f4cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jquery.ui-contextmenu.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
delegate: "[data-menu]", // selector
2828
hide: { effect: "fadeOut", duration: "fast"},
2929
show: { effect: "slideDown", duration: "slow"},
30-
position: null, // specify positional preferences.
30+
position: null, // specify positional preferences (added for issue #18 and #13).
3131
ignoreParentSelect: true, // Don't trigger 'select' for sub-menu parents
3232
menu: null, // selector or jQuery or a function returning such
3333
preventSelect: false, // disable text selection of target
@@ -157,6 +157,7 @@
157157
}
158158
});
159159

160+
// required for custom positioning (issue #18 and #13).
160161
var posOption = this.options.position;
161162

162163
if (posOption == null) {

0 commit comments

Comments
 (0)