Hello, I am interested in defining a function that is available to all XML objects. I tried the following:
XML.prototype.foo = function() {
// ...
}
var x = <a/>;
x.foo();
However, this results in the following error:
TypeError: Cannot find function foo.
Is it possible to extend XML objects in this way?
Thanks,
Robin
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
