Opened 8 years ago

Closed 8 years ago

#14138 closed defect (fixed)

dojox.mobile.createDomButton could cause a script error

Reported by: ykami Owned by: ykami
Priority: high Milestone: 1.7
Component: DojoX Mobile Version: 1.7.0b1
Keywords: Cc: Douglas Hays
Blocked By: Blocking:

Description

In createDomButton, the following code exists.

var rules = sheet.cssRules;

In some situations, this could be null. Therefore it has to be

var rules = sheet.cssRules || [];

reported by Doug

Change History (1)

comment:1 Changed 8 years ago by ykami

Resolution: fixed
Status: newclosed

In [26895]:

Fixes #14138 !strict. Added "
[]" to sheet.cssRules for safety following Doug's suggestion. Apparently the fix is safe and does nothing harmful. Thanks Doug for the suggestion.
Note: See TracTickets for help on using tickets.