quirkey / sammy

Sammy is a tiny javascript framework built on top of jQuery, It's RESTful Evented Javascript.
http://sammyjs.org
MIT License
2.99k stars 384 forks source link

Tutorials partI error #250

Closed marklma closed 8 years ago

marklma commented 8 years ago

I think the right one is:

this.get('#/', function(context) {
        $.ajax({
          url: 'data/items.json',
          dataType: 'json',
          success: function(items) {
              context.log(items.title, '-', items.artist);
...

There is no need to use $.each(...)