added getPrototype (string)
This commit is contained in:
parent
4505fb1ffc
commit
e34e5a0ee3
1 changed files with 12 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
|
||||
|
||||
/**
|
||||
* get the prototype of any doc-object (either a prototype, a function or a tag)
|
||||
*/
|
||||
function getDocPrototype (obj) {
|
||||
var tmp = obj;
|
||||
while (tmp!=null && tmp.getType () != this.PROTOTYPE) {
|
||||
|
@ -8,6 +10,15 @@ function getDocPrototype (obj) {
|
|||
return tmp;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* get a prototype of this docapplication, ie get on of the children of this object
|
||||
*/
|
||||
function getPrototype (name) {
|
||||
return this.getChildElement ("prototype_" + name);
|
||||
}
|
||||
|
||||
|
||||
function getDir (dir, obj) {
|
||||
dir.mkdir ();
|
||||
if (obj.getType () == this.APPLICATION) {
|
||||
|
|
Loading…
Add table
Reference in a new issue