Skip to content

Instantly share code, notes, and snippets.

@codeschool-courses
Created March 7, 2012 21:17
Show Gist options
  • Save codeschool-courses/1996310 to your computer and use it in GitHub Desktop.
Save codeschool-courses/1996310 to your computer and use it in GitHub Desktop.
Anatomy of Backbone 1-4
var Appointment = Backbone.Model.extend({});
var appointment = new Appointment();
var AppointmentView = Backbone.View.extend({});
@MikeKennedyNYC
Copy link

var Appointment = Backbone.Model.extend({});
var appointment = new Appointment();
var AppointmentView = Backbone.View.extend({});
var appointmentView = new AppointmentView({model: appointment});

is correct but the challenge wont accept it - what gives?? anyone see what I may have done wrong?

@coalwater
Copy link

@NYCLUBOY, I pasted your last line and it worked fine, I don't know if they fixed something or you were submitting the whole 4 lines not just the last line.

@ericpeck
Copy link

I'm having the same issue.
I even copied and pasted from the hint and it still didn't work.
*I submitted all four lines.

@rezarr
Copy link

rezarr commented Sep 4, 2014

Still having the same issue, I cut and paste the same 4 lines and still fails.

@Gero1369
Copy link

this exercise, "Set the Title", and "Render the View" seem not to be working correctly.

@JimmyGit
Copy link

Looks like they only want the last line of code. I got stuck on the second excercise the same way.

@Ashwanirai
Copy link

var Appointment = Backbone.Model.extend({});
var appointment = new Appointment();
var AppointmentView = Backbone.View.extend({});
var appointmentView1 = new AppointmentView({model:appointment});

I have pasted this code but it still not working.

@MikeKennedyNYC
Copy link

Thanks for answering folks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment