Title:

wrigth now, the function looks like this

(in dynapi.js)

DynObject.prototype.getAll = function() {
        var ret = [];
        var temp;
        var l = this.children.length;
        for(var i=0;i<l;i++) {
                ret[this.children[i].id] = this.children[i];
                temp = this.children[i].getAll();
                for(var j=0;j<temp.length;j++) ret[j] = temp[j];
        }
        return ret
};

do you notice the for statement after the recurent call to get all ???
it inserts layers into ret array, but not indexed by there name ....
this is a serious bug , boys ....

i guess the function should look like this ....
DynObject.prototype.getAll = function() {
        var ret = [];
        var temp;
        var l = this.children.length;
        for(var i=0;i<l;i++) {
                ret[this.children[i].id] = this.children[i];
                temp = this.children[i].getAll();
                for(var j=0;j<temp.length;j++) ret[temp[j].id] = temp[j];
        }
        return ret
};

correct me if Im wrong ...


Bogdan Pietroiu
IT Specialist
MIS Department
Flamingo Computers SA
tel:  +40-1-236.2002
fax: +40-1-236.2004
e-mail: [EMAIL PROTECTED]
web: www.flamingo.ro

smime.p7s

Reply via email to