We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9606e82 commit 30e9f72Copy full SHA for 30e9f72
jquery.ui-contextmenu.js
@@ -254,8 +254,7 @@
254
.first()
255
.replaceWith(titleOrData);
256
}else{
257
- $parent = $entry.closest("li");
258
- $parent.empty();
+ $parent = $entry.closest("li").empty();
259
$.ui.contextmenu.createEntryMarkup(titleOrData, $parent);
260
}
261
},
@@ -285,7 +284,7 @@ $.extend($.ui.contextmenu, {
285
284
$a.append($("<span class='ui-icon'>").addClass(entry.uiIcon));
286
287
if(entry.disabled){
288
- $a.addClass("ui-state-disabled");
+ $parentLi.addClass("ui-state-disabled");
289
290
291
return $a;
0 commit comments