Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#3133 closed defect (fixed)

dojo.extractRgb doesn't always return an array of numbers

Reported by: Ben Lowery Owned by: Ben Lowery
Priority: high Milestone:
Component: General Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

If dojo.extractRgb is passed the string rgb(255,255,255), the values in the returned array are typeof() == string, not number. All other cases return numbers. This can adversely affect later calculations made using the array.

Change History (2)

comment:1 Changed 12 years ago by Ben Lowery

Resolution: fixed
Status: newclosed

(In [8727]) fixes #3133. force extractRgb to return an array of number instead of an array of string for rgb(0,0,0) style strings

comment:2 Changed 12 years ago by Ben Lowery

(In [8728]) refs #3133. remove unneeded function wrapper

Note: See TracTickets for help on using tickets.