You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs for callback say that it takes 4 args and they are (itemKey, opt, rootMenu, originalEvent). However, looking at the source code shows this: callback.call(root.$trigger, key, root, e). So, the docs should drop the "rootMenu" as there's only 3 args passed and the third is the event. (maybe the docs should also state that this is assigned to be opt.$trigger)
The text was updated successfully, but these errors were encountered:
... originalEvent should probably just be event as the event passed is a regular jQuery event and the "original" is an attribute off of that passed event.
In other words, if you access the value that's passed (let's call it event) you can see that it has the original event as an attribute (so event.originalEvent is the actual original event, not the passed in value event).
The docs for callback say that it takes 4 args and they are
(itemKey, opt, rootMenu, originalEvent)
. However, looking at the source code shows this:callback.call(root.$trigger, key, root, e)
. So, the docs should drop the "rootMenu" as there's only 3 args passed and the third is the event. (maybe the docs should also state thatthis
is assigned to beopt.$trigger
)The text was updated successfully, but these errors were encountered: