Opened 14 years ago
Closed 13 years ago
#7669 closed defect (duplicate)
NodeList: .addContent should be a mapIn function
Reported by: | dante | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | future |
Component: | Core | Version: | 1.2beta |
Keywords: | Cc: | dante | |
Blocked By: | Blocking: |
Description
The pattern in Dojo of having a function work on a single node with an API like: dojo.doit(node, prop|props, value?) makes wrapping that function in NodeList? with the same API really simple (dropping 'node', and acting upon the whole list) via the private mapIntoDojo method.
Proposing: make dojo.addContent a standalone function to take some of the work out of adding content safely to a single node, then provide a wrapped version in NodeList?.
Change History (5)
comment:1 Changed 14 years ago by
Milestone: | tbd → future |
---|---|
Owner: | changed from anonymous to dante |
comment:2 Changed 14 years ago by
Cc: | dante added |
---|---|
Owner: | changed from dante to Eugene Lazutkin |
comment:4 Changed 13 years ago by
Component: | General → Core |
---|
comment:5 Changed 13 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This ticket is superseded by #8282.
Note: See
TracTickets for help on using
tickets.
relates to #7295