views:

163

answers:

0
$(Constants.Selectors.Submit_Button).bind('click', function () {
    GM_log('Event run: id = ' + this.id + ' self = ' + this);
});

The above code appears to run when the click event is triggered by the document (or otherwise some other all-page encompassing element or set of elements.) The console output is this: Script: Event run: id = undefined self = [object XPCNativeWrapper [object HTMLDocument]]

The selector is a simple string "#buttonID" where buttonID is significantly obfuscated (I'm sure there are no name conflicts) and is part of an HTML form I have injected into the page. (Namely an input element with the attribute "type" set to "button").

Does anyone know why this might be? I'm clueless on this one.