Changeset 13146

Show
Ignore:
Timestamp:
03/19/08 13:01:27 (8 months ago)
Author:
alex
Message:

merging patch from Bryan Forbes to fix FontChoice? exception. Fixes #6257

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/_editor/plugins/FontChoice.js

    r13100 r13146  
    124124//console.log("mapped to " + map[value]); 
    125125                                        value = map[value] || value; 
    126                                 }else if(_c == "fontSize" && value.indexOf("px") != -1){ 
    127                                         var pixels = parseInt(value); 
     126                                }else if(_c == "fontSize"){ 
     127                                        var pixels = value; 
     128                                        if(dojo.isString(pixels) && pixels.indexOf("px") != -1){ 
     129                                                pixels = parseInt(pixels); 
     130                                        } 
    128131                                        value = {10:1, 13:2, 16:3, 18:4, 24:5, 32:6, 48:7}[pixels] || value; 
    129132                                }