Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#15428 closed defect (fixed)

dojo/dom-prop style.style is not a function, should be style.set

Reported by: Arlo White Owned by: Eugene Lazutkin
Priority: undecided Milestone: 1.8
Component: HTML Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

Using dom-props in this fashion results in an error: style.style is not a function.

domProp.set(domNode,"style", {width:"100%", height:"600px"});

Line 147 of dom-prop.js should be:

style.set(node, value);

On a side-note: Shouldn't a unit test have caught this bug?

Change History (2)

comment:1 Changed 8 years ago by Eugene Lazutkin

Owner: set to Eugene Lazutkin
Resolution: fixed
Status: newclosed

In [28681]:

dom-prop: fixed a misnamed call, thx Arlo!, !strict, fixes #15428.

comment:2 Changed 8 years ago by bill

Component: CoreHTML
Milestone: tbd1.8
Note: See TracTickets for help on using tickets.