MaxObj.js == null


    Apr 08 2006 | 2:17 pm
    Hello.
    The "js" data member of MaxObj javascript object that refer to [js] max objects seems to not contain a reference of the jsthis object, as far as I can understand.
    Here is a patch that shows the bug. Another problem (not a potential bug) is indicated in the comment of the patch.
    Is it a bug or my fault?
    Thanks,
    Maurizio.
    jsthat.js:
    autowatch = 1; outlets = 2;
    function dumpobj(obj, name) { if (name) { post(name + ":", "n"); } for (var k in obj) { post(" ", k + ":", String(obj[k]), "n"); } } dumpobj.local = 1;
    function bang() { var a = patcher.getnamed("me"), b = patcher.getnamed("me"); dumpobj(a, "a"); dumpobj(this, "this"); dumpobj(this.box, "this.box"); post("this.box == a is", String(this.box == a), "n"); post("a == b is", String(a == b), "n"); outlet(1, a.maxclass); outlet(0, String(a.js)); }