This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var itemTemplateSource = $('#templates .item').html() | |
var itemTemplate = _.template(itemTemplateSource); | |
var AddItemView = Backbone.View.extend({ | |
events: { | |
'submit': 'createItem' | |
}, | |
createItem: function (e) { | |
e.preventDefault(); | |
var itemName = this.$('.name').val(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1: Create the cheatsheet. |
NewerOlder