Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#5511 closed enhancement (fixed)

dojo.NodeList .style() api

Reported by: dante Owned by: alex
Priority: high Milestone: 1.1
Component: Core Version: 1.0
Keywords: nodelist query style css object Cc: dante
Blocked By: Blocking:


currently, NodeList?.style() accepts two string arguments. (without having looked, i don't _think_ it's acting as a setter/getter, so this argument remains valid):

based on a small extension here:

it would probably be possible to, without breaking back-compat., allow style() to accept a "magic arg" of properties in the absence of a second arg (or if the first arg is simply typeof object)

I recall a ticket regarding this a while ago, but am unable to find the #

Change History (3)

comment:1 Changed 14 years ago by alex

Status: newassigned

comment:2 Changed 14 years ago by alex

Resolution: fixed
Status: assignedclosed

(In [12364]) update to accept a style bag as the second param and ensure that the mapping in dojo.NodeList? is smart enough to handle it. Add and update tests. Fixes #5511. !strict

comment:3 Changed 14 years ago by alex

(In [12365]) update inline docs with examples. Refs #5511. !strict

Note: See TracTickets for help on using tickets.