Skip to content

Commit 958c344

Browse files
committed
clean up tabs
1 parent 928f4cb commit 958c344

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

jquery.ui-contextmenu.js

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@
2424
$.widget("ui.contextmenu", {
2525
version: "0.4.1",
2626
options: {
27-
delegate: "[data-menu]", // selector
27+
delegate: "[data-menu]", // selector
2828
hide: { effect: "fadeOut", duration: "fast"},
2929
show: { effect: "slideDown", duration: "slow"},
30-
position: null, // specify positional preferences (added for issue #18 and #13).
31-
ignoreParentSelect: true, // Don't trigger 'select' for sub-menu parents
32-
menu: null, // selector or jQuery or a function returning such
33-
preventSelect: false, // disable text selection of target
34-
taphold: false, // open menu on taphold events (requires external plugins)
30+
position: null, // specify positional preferences (added for issue #18 and #13).
31+
ignoreParentSelect: true, // Don't trigger 'select' for sub-menu parents
32+
menu: null, // selector or jQuery or a function returning such
33+
preventSelect: false, // disable text selection of target
34+
taphold: false, // open menu on taphold events (requires external plugins)
3535
// Events:
36-
beforeOpen: $.noop, // menu about to open; return `false` to prevent opening
37-
blur: $.noop, // menu option lost focus
38-
close: $.noop, // menu was closed
39-
create: $.noop, // menu was initialized
40-
focus: $.noop, // menu option got focus
41-
init: $.noop, // ui-contextmenu was initialized
42-
open: $.noop, // menu was opened
43-
select: $.noop // menu option was selected; return `false` to prevent closing
36+
beforeOpen: $.noop, // menu about to open; return `false` to prevent opening
37+
blur: $.noop, // menu option lost focus
38+
close: $.noop, // menu was closed
39+
create: $.noop, // menu was initialized
40+
focus: $.noop, // menu option got focus
41+
init: $.noop, // ui-contextmenu was initialized
42+
open: $.noop, // menu was opened
43+
select: $.noop // menu option was selected; return `false` to prevent closing
4444
},
4545
/** Construtcor */
4646
_create: function () {
@@ -157,25 +157,25 @@
157157
}
158158
});
159159

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

163-
if (posOption == null) {
163+
if (posOption == null) {
164164
posOption = {
165165
my: "left top",
166166
at: "left bottom",
167167
of: parentTarget,
168168
collision: "fit"
169169
}
170-
} else if (jQuery.isFunction(this.options.position)) {
170+
} else if (jQuery.isFunction(this.options.position)) {
171171
posOption = posOption(event, ui);
172-
} else {
173-
// do we need to add the of?
174-
var posTarget = posOption.of;
175-
if (posTarget == null) {
172+
} else {
173+
// do we need to add the of?
174+
var posTarget = posOption.of;
175+
if (posTarget == null) {
176176
posOption.of = parentTarget;
177-
}
178-
}
177+
}
178+
}
179179

180180
// Finally display the popup
181181
$menu
@@ -249,15 +249,15 @@
249249
$menu.menu("refresh");
250250
}else{
251251
$.error("not implemented");
252-
// this.orgMenu = opts.menu;
253-
// opts.menu = $.ui.contextmenu.createMenuMarkup(data);
252+
// this.orgMenu = opts.menu;
253+
// opts.menu = $.ui.contextmenu.createMenuMarkup(data);
254254
}
255255
}else{
256-
// if(this.orgMenu){
257-
// // re-use existing temporary <ul>
258-
// }else{
259-
// }
260-
// $menu.menu("option", "menu", opts.menu);
256+
// if(this.orgMenu){
257+
// // re-use existing temporary <ul>
258+
// }else{
259+
// }
260+
// $menu.menu("option", "menu", opts.menu);
261261
$.error("not implemented");
262262
}
263263
},

0 commit comments

Comments
 (0)