Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/api
In directory usw-pr-cvs1:/tmp/cvs-serv20032
Modified Files:
dyndocument.js
Log Message:
Fixed added of DynDocuments to dyndocs[] array.
Also, renamed count to nullCount for consistency with DynLayer
Index: dyndocument.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/api/dyndocument.js,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** dyndocument.js 2001/01/08 04:50:57 1.6
--- dyndocument.js 2001/01/20 21:43:33 1.7
***************
*** 12,16 ****
this.all = [];
this.children = [];
! this.id = frame.name||"DynDocument"+DynDocument.count++;
frame.onresize = DynAPI.resizeHandler;
--- 12,16 ----
this.all = [];
this.children = [];
! this.id = frame.name||"DynDocument"+DynDocument.nullCount++;
frame.onresize = DynAPI.resizeHandler;
***************
*** 18,25 ****
this.fgColor = this.doc.fgColor||'';
this.bgColor = this.doc.bgColor||'';
- this.origBgColor = this.bgColor;
frame.dyndoc = this;
! DynDocument.dyndocs[DynAPI.documents.length]=this;
DynDocument.dyndocsID[this.id]=this;
return this;
--- 18,24 ----
this.fgColor = this.doc.fgColor||'';
this.bgColor = this.doc.bgColor||'';
frame.dyndoc = this;
! DynDocument.dyndocs[DynDocument.dyndocs.length]=this;
DynDocument.dyndocsID[this.id]=this;
return this;
***************
*** 27,31 ****
DynDocument.dyndocs = [];
DynDocument.dyndocsID = [];
! DynDocument.count=0;
DynDocument.prototype.isChild = false;
DynDocument.prototype.created = true;
--- 26,30 ----
DynDocument.dyndocs = [];
DynDocument.dyndocsID = [];
! DynDocument.nullCount=0;
DynDocument.prototype.isChild = false;
DynDocument.prototype.created = true;
_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs