Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#4791 closed bug (notabug)

widget._trigger inconsistency

Reported by: Gilles Owned by:
Priority: minor Milestone:
Component: ui.core Version: 1.8a1
Keywords: Cc:
Blocked by: Blocking:


There is an inconsistency when you call the _trigger function.

For instance, lets say you have the widget "dummy", inside that widget you call; this._trigger('somemethod');

This means that element.dummysomemethod is called.

When you bind the function later (e.g.) var oWidget = $(...).dummy(); oWidget.bind('dummysomemethod', ...);

You can use (from within the widget): this._trigger('SomeMethod');

but when you bind it with the constructor (e.g.); var oWidget = $(...).dummy({ somemethod: ... });

You can't use the "SomeMethod" call to trigger it, you have to use "somemethod". In other words, there is a difference in binding and triggering when it comes to casing.

works if you associate

Change History (2)

comment:1 Changed 13 years ago by Scott González

Resolution: invalid
Status: newclosed

This is as designed.

comment:2 Changed 10 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.