--- Nickolay Ponomarev <[EMAIL PROTECTED]> wrote:
> On 3/3/06, Eric H. Jung <[EMAIL PROTECTED]> wrote: > > > Also what does typeof (new MyClass()) return in a HTML page, and from a > > > chrome script? > > > > They both return "object" > > > As I suggested on the mozillazine forums, try (new MyClass()) > instanceof Object. This check fails for me when and only when the JSON > call fails to work. Figuring out why their code returns null is > something you could easily do yourself, though. I could do it easily only if I understood the code at http://www.json.org/json.js. I don't understand this syntax: var JSON = function () { var m = {...}, ..., return { stringify: function (v) {} }; }(); What the heck is that? That's about as comprehesible as http://www0.us.ioccc.org/2004/gavare.c > > Nickolay > _______________________________________________ > Project_owners mailing list > [email protected] > http://mozdev.org/mailman/listinfo/project_owners > _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
