I have an object:
    function myObject(e){
        connect(document, 'onclick', this.someFunction);
    }
    myObject.prototype.someFunction = *STUFF*

The object is initialized as the onClick action of an HTML Input
element:
    connect(myInput, 'onclick', function(e){var myObjectInstance = new
myObject(e);});

If I click on the input, the object gets instantiated just fine (no
errors).  However, the moment I click anywhere in the document I get
the following error:
    src has no properties
    connect(undefined, "onclick", function(), undefined)Signal.js
(line 628)
    myObject()js_myFile... (line 193)
    (no name)(click clientX=0, clientY=0)Signal.js (line 553)
    [Break on this error] var isDOM = !!(src.addEventListener ||
src.attachEvent);

I'm pulling my hair out trying to figure out why Mochikit thinks that
document doesn't exists; can anyone please help?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to