Update of /cvsroot/dynapi/dynapi/src
In directory usw-pr-cvs1:/tmp/cvs-serv28643
Modified Files:
dynapi.js
Log Message:
Updated onxxxcodes call using eval(array.join(";"))
Index: dynapi.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/dynapi.js,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -r1.29 -r1.30
*** dynapi.js 2001/03/25 06:04:17 1.29
--- dynapi.js 2001/03/26 02:15:53 1.30
***************
*** 208,212 ****
DynAPIObject.prototype.loadHandler = function() {
this.created = true;
! for(var i=0;i<this.onLoadCodes.length;i++) eval(this.onLoadCodes[i]);
if (this.onLoad) this.onLoad();
this.loaded=true;
--- 208,212 ----
DynAPIObject.prototype.loadHandler = function() {
this.created = true;
! eval(this.onLoadCodes.join(";"));
if (this.onLoad) this.onLoad();
this.loaded=true;
***************
*** 215,225 ****
DynAPIObject.prototype.unloadHandler = function() {
this.deleteAllChildren();
if (this.onUnload) this.onUnload();
- for(var i=0;i<this.onUnLoadCodes.length;i++) eval(this.onUnLoadCodes[i]);
eval(this.hookUnload);
}
DynAPIObject.prototype.resizeHandler = function() {
if (this.onResize) this.onResize();
- for(var i=0;i<this.onResizeCodes.length;i++) eval(this.onResizeCodes[i]);
}
DynAPI = new DynAPIObject();
--- 215,225 ----
DynAPIObject.prototype.unloadHandler = function() {
this.deleteAllChildren();
+ eval(this.onUnLoadCodes.join(";"));
if (this.onUnload) this.onUnload();
eval(this.hookUnload);
}
DynAPIObject.prototype.resizeHandler = function() {
+ eval(this.onResizeCodes.join(";"));
if (this.onResize) this.onResize();
}
DynAPI = new DynAPIObject();
_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs