Skip to content

Instantly share code, notes, and snippets.

@codeschool-courses
Created March 7, 2012 21:25
Show Gist options
  • Save codeschool-courses/1996339 to your computer and use it in GitHub Desktop.
Save codeschool-courses/1996339 to your computer and use it in GitHub Desktop.

Revisions

  1. codeschool-courses revised this gist Mar 7, 2012. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion challenge-1-7.js
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,9 @@
    var Appointment = Backbone.Model.extend({});
    var appointment = new Appointment();
    appointment.set('title', 'My knee hurts');
    var AppointmentView = Backbone.View.extend({});
    var AppointmentView = Backbone.View.extend({
    render: function(){
    $(this.el).html('<li>' + this.model.get('title') + '</li>');
    }
    });
    var appointmentView = new AppointmentView({model: appointment});
  2. codeschool-courses revised this gist Mar 7, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions challenge-1-7.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    var Appointment = Backbone.Model.extend({});
    var appointment = new Appointment();
    appointment.set('title', 'My knee hurts');
    var AppointmentView = Backbone.View.extend({});
    var appointmentView = new AppointmentView({model: appointment});
  3. codeschool-courses revised this gist Mar 7, 2012. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion challenge-1-7.js
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    var Appointment = Backbone.Model.extend({});
    var appointment = new Appointment();
    appointment.set('title', 'My knee hurts');
    appointment.set('title', 'My knee hurts');
    var appointmentView = new AppointmentView({model: appointment});
  4. codeschool-courses created this gist Mar 7, 2012.
    3 changes: 3 additions & 0 deletions challenge-1-7.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    var Appointment = Backbone.Model.extend({});
    var appointment = new Appointment();
    appointment.set('title', 'My knee hurts');