Skip to content

Document the behavior for camelCased plugins/events in the widget factory #182

Closed
@FagnerMartinsBrack

Description

@FagnerMartinsBrack

http://jsfiddle.net/UmacR/

It wasn't clear the behavior of camel cased events according to the jquery ui widget API documentation.
Of course it would be pretty crazy if jquery UI did not handled in some way (greatPluginexecuteEvent), but the current behavior to lowercase everything is not mentioned in the docs and is not as intuitive as you think it is.
To avoid looking into source I had to create a JSFiddle to check the behavior.

This is an information so simple that could be presented like:

Events

...For most widgets, when the events are triggered, the names are prefixed with the widget name and all converted to lowercase...

or something like that.

The given example in the page do not imply the current behavior, since both sides are built using a single word

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions