John, can I ask you why you did not chose Function(string)() ? YUIMin, if I am not wrong, works with Function because there are less problems with the external scope ( Function works in the global one, so the only problem is "arguments" rather than possible variables that are not globals )
On Tue, May 19, 2009 at 11:32 PM, John Resig <jere...@gmail.com> wrote: > That's specifically being done to allow YUIMin to properly compress jQuery > (it sees an eval and assumes that it can't be compressed, but using that > technique allows it to work). > > --John > > > > On Tue, May 19, 2009 at 5:22 PM, Justin Meyer <justinbme...@gmail.com>wrote: > >> >> I assume there must be a good reason, but why is window['eval'] used >> as opposed to window.eval in httpData? This has some issues in rhino >> for reasons discussed here: >> >> >> http://www.mail-archive.com/dev-tech-js-engine-rh...@lists.mozilla.org/msg00664.html >> >> I know jQuery's tests run in rhino, but perhaps not XHR JSON requests? >> >> Is there something that you are doing to rhino (I'm not in strict >> mode) that allows this? >> >> Thanks for your help. >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---