Changeset 10568

Show
Ignore:
Timestamp:
09/20/07 12:56:42 (14 months ago)
Author:
peller
Message:

Don't copy over values with type of Date with attributeMap. Strings are most predictable, but let's stick to primitive types. Fixes #4497, refs #3058.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/_Widget.js

    r10552 r10568  
    117117                                var mapNode = this[this.attributeMap[attr] || "domNode"]; 
    118118                                var value = this[attr]; 
    119                                 if(value !== "" || (params && params[attr])){ 
     119                                if(typeof value != "object" && (value !== "" || (params && params[attr]))){ 
    120120                                        switch(attr){ 
    121121                                        case "class":