Subj : Re: Method added into Object.prototype: can't call directly inside To : zwetan From : Brendan Eich Date : Tue Oct 11 2005 02:52 pm zwetan wrote: >>Sorry, this is the bug Martin Honnen points out: >>https://bugzilla.mozilla.org/show_bug.cgi?id=300079 >> >>It's due to how XUL scripts are precompiled. It should be possible to >>fix with some work. Let me write a comment in that bug. >> > > > is this behaviour only with Function.prototype members > or also with all the others core objects ? Function and RegExp. > ex: if I define something as > String.prototype.endsWith = function() {....} > > I will be able to acces it in the HTML document but not in a XUL document, > am I right here ? String and other classes are ok. /be .