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: Closed
>Resolution: Later
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 ?


----------------------------------------------------------------------

>Comment By: Robert Rainwater (rainwater)
Date: 2001-08-13 16:20

Message:
Logged In: YES 
user_id=16618

hookLoad has been removed because it is not working 
correctly.  You fix however would not allow you to say 
<body onload="">.  That was the whole reason for the 
hookLoad stuff.

----------------------------------------------------------------------

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

Reply via email to