|
@@ -52,14 +52,13 @@ class Settings extends Prefab {
|
|
</dl>
|
|
</dl>
|
|
<br/>
|
|
<br/>
|
|
'),this);
|
|
'),this);
|
|
- var typesCache = hide.Ide.inst.typesCache; // direct reference (not in API)
|
|
|
|
var select = props.find("select");
|
|
var select = props.find("select");
|
|
- var models = typesCache.getModels();
|
|
|
|
|
|
+ var models = ctx.ide.typesCache.getModels();
|
|
for( m in models )
|
|
for( m in models )
|
|
- new hide.Element('<option>').attr("value", m.id).text(typesCache.getModelName(m)).appendTo(select);
|
|
|
|
|
|
+ new hide.Element('<option>').attr("value", m.id).text(ctx.ide.typesCache.getModelName(m)).appendTo(select);
|
|
var modelDef = null;
|
|
var modelDef = null;
|
|
if( modelType != null ) {
|
|
if( modelType != null ) {
|
|
- modelDef = typesCache.get(modelType, true);
|
|
|
|
|
|
+ modelDef = ctx.ide.typesCache.get(modelType, true);
|
|
if( modelDef == null )
|
|
if( modelDef == null )
|
|
new hide.Element('<option>').attr("value", modelType).text("?"+modelType).appendTo(select);
|
|
new hide.Element('<option>').attr("value", modelType).text("?"+modelType).appendTo(select);
|
|
select.val(modelType);
|
|
select.val(modelType);
|
|
@@ -105,8 +104,8 @@ class Settings extends Prefab {
|
|
|
|
|
|
ctx.properties.addProps(modelDef.fields, this.data);
|
|
ctx.properties.addProps(modelDef.fields, this.data);
|
|
var rebuild = ctx.rebuildProperties;
|
|
var rebuild = ctx.rebuildProperties;
|
|
- typesCache.watch(rebuild);
|
|
|
|
- ctx.cleanups.push(typesCache.unwatch.bind(rebuild));
|
|
|
|
|
|
+ ctx.ide.typesCache.watch(rebuild);
|
|
|
|
+ ctx.cleanups.push(ctx.ide.typesCache.unwatch.bind(rebuild));
|
|
}
|
|
}
|
|
|
|
|
|
#end
|
|
#end
|