| Author |
bindAsEventListener
|
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
I have the following snipit: I'd like the user to be able to define their own even handlers for onmouseout, etc, and be able to bind user defined events, rather than having to have them change the code in the above snipit. Is that possible? Someway for the user to pass in the event in the initialize: function() ? Thanks.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
You probably want to look into new Function() or call(). If you look at the ContentLoader from my book or look at prototype or dojo, they use call. Eric
|
 |
 |
|
|
subject: bindAsEventListener
|
|
|