recipeswithbackbone/recipeswithbackbone.github.com — Issue #40: new or .new()
Author: simax
Created: 2012-01-02 14:32:43+00:00
State: open

In several of the code snippet examples (pages 9, 12, 16 and 24) I notice that you are "newing" up objects using .new() syntax:

On page 9 for example:

$(function() {
var appointments = Appointments.new();
appointments.fetch();
});

I think this is probably the "Rubyist" in you coming out. I assume you meant to write:

$(function() {
var appointments = new Appointments();
appointments.fetch();
});