maqetta/maqetta — Issue #1883: (Firefox) Exception when opening theme editors
Author: JonFerraiolo
Created: 2012-03-08 22:47:14+00:00
State: open
Labels: Priority High, Properties View, Regression, Theme Editor

@billreed63

@childsb - could you please look into this one?

When running Firefox builds, I'm getting an exception in ```getType()``` in the line that is doing a substring. To recreate, clone claro to claro2 or custom to custom2 and look in Firebug console.

Here is the stack trace from the built version:

```
getType(_226d=[])
getRelativeMetaTargetSelector(_2053=["background-color"])
_getClassSelector(_5d8="dvThemeWidget")
_getAllRules()
_buildCssRuleset()
_updateCascadeList()
```

The debugger shows the following code, where the last line below is the line which is getting the exception:
```
,"davinci/ve/themeEditor/metadata/query":function(){
define(["dojo/_base/declare"],function(_226b){
return _226b("davinci.ve.themeEditor.metadata.query",null,{constructor:function(files,_226c){
this.files=files;
this.cache={};
this.lastLoaded=-1;
this.modules=_226c;
this.modulePrefix=null;
this.modulePrefix=".";
if(_226c){
for(var i=0;i<_226c.length;i++){
this.modulePrefix+="/"+_226c[i];
}
}
},getType:function(_226d){
var type=null;
if(_226d.declaredClass){
type=_226d.type;
}else{
type=_226d;
if(type.substring(0,5)=="html."){
tagName=type.substring(5);
}
```