Bugs item #439722, was opened at 2001-07-09 07:04 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105757&aid=439722&group_id=5757 Category: DynAPI 2 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: Stratis Karamanlakis (skaramanlakis) Assigned to: Nobody/Anonymous (nobody) Summary: error in loadHandler Initial Comment: The DynAPIObject calls hookLoad and hooUnload via eval () DynAPIObject.prototype.loadHandler = function() { this.created = true; eval(this.onLoadCodes.join(";")); if (this.onLoad) this.onLoad(); this.loaded=true; eval(this.hookLoad); // ERROR! } DynAPIObject.prototype.unloadHandler = function() { if (!is.ns4) this.deleteAllChildren(); eval(this.onUnLoadCodes.join(";")); if (this.onUnload) this.onUnload(); eval(this.hookUnload); // ERROR! } This is wrong, since the two prperties are initialized as function pointers and not strings. DynAPI.hookLoad=window.onload; DynAPI.hookUnload=window.onunload; The corresponding lines should read: this.hookLoad(); and this.hookUnLoad(); Correct ? ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105757&aid=439722&group_id=5757 _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-dev
