Skip to content

Instantly share code, notes, and snippets.

@edwardtanguay
Created June 3, 2014 19:03
Show Gist options
  • Save edwardtanguay/f93dbf79a9a718de9ba3 to your computer and use it in GitHub Desktop.
Save edwardtanguay/f93dbf79a9a718de9ba3 to your computer and use it in GitHub Desktop.

Revisions

  1. edwardtanguay created this gist Jun 3, 2014.
    2 changes: 2 additions & 0 deletions jsbin.sipexido.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    <script src="http://jashkenas.github.io/underscore/underscore-min.js"></script>
    <script src="http://jashkenas.github.io/backbone/backbone-min.js"></script>
    14 changes: 14 additions & 0 deletions jsbin.sipexido.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    var TaskModel = Backbone.Model.extend ({
    defaults : {
    title : '',
    description : '',
    score : 55
    },
    initialize : function() {
    console.log('in init');
    }
    });

    var taskModel = new TaskModel();

    console.log(taskModel.toJSON());