Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/gui
In directory usw-pr-cvs1:/tmp/cvs-serv13577
Modified Files:
loadpanel.js
Log Message:
Check for existence of recycled before checking length
Index: loadpanel.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/gui/loadpanel.js,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** loadpanel.js 2001/03/31 22:39:09 1.16
--- loadpanel.js 2001/04/18 14:06:03 1.17
***************
*** 84,88 ****
};
LoadPanel.prototype.clearFile=function() {
! this.url=null
if (this.isILayer) {
this.loadElement.document.write('');
--- 84,88 ----
};
LoadPanel.prototype.clearFile=function() {
! this.url=null;
if (this.isILayer) {
this.loadElement.document.write('');
***************
*** 105,109 ****
this.removeFromParent();
// CH: Had to add this code, so NS4 does not recycle the old loadElement.
! if(is.ns4 && p.doc.recycled.length>0) {
delete p.doc.recycled[p.doc.recycled.length-1];
p.doc.recycled.length--;
--- 105,109 ----
this.removeFromParent();
// CH: Had to add this code, so NS4 does not recycle the old loadElement.
! if(is.ns4 && p.doc.recycled && p.doc.recycled.length>0) {
delete p.doc.recycled[p.doc.recycled.length-1];
p.doc.recycled.length--;
_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs