jQuery.globalEval() throws EvalError

Showing 1-3 of 3 messages
jQuery.globalEval() throws EvalError Célio Cidral 1/2/12 9:16 AM
This happened to me after I tried to call jQuery.load():

   EvalError: The “this” object passed to eval must be the global object from which eval originated.

The response html contained a <script> block which jQuery tried to evaluate with jQuery.globalEval().  I'm not sure why this happens but I guess the eval() function is does not recognize window as a valid global context.  I tried to workaround it by replacing the line window["eval"].call(window, data) with simply eval(data) and it worked.  Of course this workaround is by far unrecommended.

Does anyone have some hint on this problem?

Re: [zombie-js] jQuery.globalEval() throws EvalError Assaf 1/3/12 8:57 PM
Indeed a bug.

Brian McDaniel is working his magic to fix this:
Re: [zombie-js] jQuery.globalEval() throws EvalError Célio Cidral 1/20/12 4:51 AM
Seems like it's been fixed.  Thanks a lot for your help.