Skip to content

Unpredictable API #453

@Ivanca

Description

@Ivanca

Why the items callbacks (each option in the contex menu) aren't normal jQuery events but instead being called manually? (line 885 callback.call(root.$trigger, key, root)) and besides that those are being called with weird arguments, the first parameter of a callback should always be an Event object, that's how all event listeners work in jQuery, jQuery.UI and hundreads of plugins, then the other parameters could be the key and the root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions