Skip to main content

Search and Top Navigation

#9661 closed feature (wontfix)

Opened November 15, 2013 06:31PM UTC

Closed November 15, 2013 06:42PM UTC

Widget Factory _on() could make it easier to apply multiple handlers

Reported by: mattros Owned by:
Priority: minor Milestone: none
Component: ui.widget Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:
Description

Widget Factory's _on() method, because it uses a map to accept handlers, makes it clunky to apply multiple handlers to the same event-selector combination. You have to do:

this._on($element, { 'click .class' : functionOne } );
this._on($element, { 'click .class' : functionTwo } );

If the map values could be arrays of functions, that would be very convenient:

this._on($element, { 'click .class' : [ functionOne, functionTwo ] } );
Attachments (0)
Change History (1)

Changed November 15, 2013 06:42PM UTC by scottgonzalez comment:1

resolution: → wontfix
status: newclosed

I'd rather not complicate this signature even more.