quirkey/sammy

Tutorials partI error

Closed this issue · 0 comments

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(...)