Exception "Syntax error, unrecognized expression

Exception "Syntax error, unrecognized expression

Hi,
im getting this error when on my script that rebinds functions and recreates dialogs, what could be the problem?

I am using jQuery 1.5.1.min & jQuery UI 1.8.11

[Exception... "'Syntax error, unrecognized expression: "' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]  Line 0