Opened 13 years ago

Closed 12 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:


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 13 years ago by dante

Milestone: tbdfuture
Owner: changed from anonymous to dante

relates to #7295

comment:2 Changed 13 years ago by dante

Cc: dante added
Owner: changed from dante to Eugene Lazutkin

comment:3 Changed 13 years ago by Eugene Lazutkin

Relates to #7890.

comment:4 Changed 13 years ago by Eugene Lazutkin

Component: GeneralCore

comment:5 Changed 12 years ago by Eugene Lazutkin

Resolution: duplicate
Status: newclosed

This ticket is superseded by #8282.

Note: See TracTickets for help on using tickets.