Opened 12 years ago
Closed 12 years ago
#7418 closed enhancement (wontfix)
dojo.behavior: add shorthand apply({}) api
Reported by: | dante | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Core | Version: | 1.1.1 |
Keywords: | Cc: | Robert Coup | |
Blocked By: | Blocking: |
Description
The current API for dojo.behavior requires you add and apply as separate function calls. A common usecase would be to apply({}) an object, and have it call .add then .apply for you.
patch and unit tests attached.
Attachments (1)
Change History (3)
Changed 12 years ago by
Attachment: | behavior.patch added |
---|
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
I think this is a wontfix, I'd rather have handles returned from add and introduce a remove API, then later address any sugar syntax like this.
Note: See
TracTickets for help on using
tickets.
See http://thread.gmane.org/gmane.comp.web.dojo.devel/9073/focus=9081