I'm wondering if it's possible to add a method to the Node and/or
Element objects (so they'd subsequently be available to any
node/element). I'd assume you could just do something like:
n.myNewMethod = function myNewMethod;
where n is any Node -- but the fact that Nodes and Elements are
explicitly definied as interfaces rather than actual objects in the DOM
standard makes me wary. Javascript/ECMAscript, iirc, however, uses a
prototype object-oriented model that doesn't have interfaces, right?
Thanks,
Weston
~==~
Taking Pictures During Dreams
weston8[at]cann8central.or g
(remove eights to email me)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Element objects (so they'd subsequently be available to any
node/element). I'd assume you could just do something like:
n.myNewMethod = function myNewMethod;
where n is any Node -- but the fact that Nodes and Elements are
explicitly definied as interfaces rather than actual objects in the DOM
standard makes me wary. Javascript/ECMAscript, iirc, however, uses a
prototype object-oriented model that doesn't have interfaces, right?
Thanks,
Weston
~==~
Taking Pictures During Dreams
weston8[at]cann8central.or g
(remove eights to email me)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Comment