SkinMgr.getSkinSource (proto, name) |
return the source of a skin
|
Sourcecode in SkinMgr/objectFunctions.js:
1: function getSkinSource(proto, name) { 2: var s; 3: if ((s = this.getSkin(proto, name)) != null) 4: return s.skin; 5: else if (this._parent.parent) { 6: var handler = this._parent; 7: while ((handler = handler.parent) != null) { 8: if ((s = handler.skins.getSkin(proto, name)) != null) 9: return s.skin; 10: } 11: } 12: if (app.skinfiles[proto]) 13: return app.skinfiles[proto][name]; 14: return null; 15: } |