File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 136
136
// User selected a menu entry
137
137
var retval ,
138
138
isParent = ( ui . item . has ( ">a[aria-haspopup='true']" ) . length > 0 ) ,
139
- $a = ui . item . find ( ">a" ) ,
140
- actionHandler = $a . data ( "actionHandler" ) ;
139
+ actionHandler = ui . item . data ( "actionHandler" ) ;
141
140
ui . cmd = ui . item . attr ( "data-command" ) ;
142
141
ui . target = $ ( this . currentTarget ) ;
143
142
// ignore clicks, if they only open a sub-menu
@@ -332,7 +331,7 @@ $.extend($.moogle.contextmenu, {
332
331
href : "#"
333
332
} ) . appendTo ( $parentLi ) ;
334
333
if ( $ . isFunction ( entry . action ) ) {
335
- $a . data ( "actionHandler" , entry . action ) ;
334
+ $parentLi . data ( "actionHandler" , entry . action ) ;
336
335
}
337
336
if ( entry . uiIcon ) {
338
337
$a . append ( $ ( "<span class='ui-icon' />" ) . addClass ( entry . uiIcon ) ) ;
You can’t perform that action at this time.
0 commit comments