GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 93 forks source link

Page 223, Prototype or jQuery? #134

Open MudassarBashir opened 9 years ago

MudassarBashir commented 9 years ago

The paragraph under listing 8.14 mentions that:

...Prototype automatically evals()the return value into a native JavaScript object.

I got a bit confused as to why it's talking about Prototype when we have been using jQuery in the book.

pledbrook commented 9 years ago

Looks like a hangover from the book's first edition in which we used Prototype. That should be referring to jQuery and it probably shouldn't mention eval(). I'm not sure that's how jQuery actually processes the JSON into a Javascript object.