Opened 11 years ago

Closed 11 years ago

Last modified 11 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:

Description

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: http://dojotoolkit.org/forum/dojo-core-dojo-0-9/dojo-core-development-discussion/dojo-extend-fun-and-profit

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 11 years ago by alex

Status: newassigned

comment:2 Changed 11 years ago by alex

Resolution: fixed
Status: assignedclosed

(In [12364]) update dojo.style() 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 11 years ago by alex

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

Note: See TracTickets for help on using tickets.