Skip to content

Commit 3bcf929

Browse files
committed
entry data attached to parentLi
In the jQueryUI 1.11 branch of the menugenerator the entry data has not been passed to the select handler. With this change it can be accessd using ui.item.data().
1 parent 517530f commit 3bcf929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.ui-contextmenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ if ( uiVersion.major < 2 && uiVersion.minor < 11 ) {
384384
$parentLi.addClass("ui-state-disabled");
385385
}
386386
if ($.isPlainObject(entry.data)) {
387-
$a.data(entry.data);
387+
$parentLi.data(entry.data);
388388
}
389389
}
390390
},

0 commit comments

Comments
 (0)