Skip to content
This repository was archived by the owner on Aug 14, 2021. It is now read-only.

Commit 465bdf5

Browse files
committed
Fix setEntry({...}) for jQuery UI 1.12
Close #110
1 parent 761ceee commit 465bdf5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# 1.13.1-0 / Unreleased
22
* [BUGFIX] #109 Fix `setEntry(title)` for titles containing icons
3+
* [BUGFIX] #110 Fix `setEntry({...})` for jQuery UI 1.12
34

45
# 1.13.0 / 2016-08-21
56

jquery.ui-contextmenu.js

+2
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ $.widget("moogle.contextmenu", {
372372
$ul = $("<ul/>").appendTo($entryLi);
373373
$.moogle.contextmenu.createMenuMarkup(entry.children, $ul);
374374
}
375+
// #110: jQuery UI 1.12: refresh only works when this class is not set:
376+
$entryLi.removeClass("ui-menu-item");
375377
this.getMenu().menu("refresh");
376378
}
377379
},

0 commit comments

Comments
 (0)