Last active
March 9, 2017 03:35
-
-
Save ykhs/04e772788e17b46a1411 to your computer and use it in GitHub Desktop.
JavaScript養成読本 特集1 第6章 リスト8 訂正
This file contains hidden or 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
// js/note_list_item.js | |
App.NoteListItemView = Backbone.View.extend({ | |
tagName: 'tr', | |
render: function() { | |
var template = $('#noteListItemView-template').html(); | |
var compiled = _.template(template); | |
var html = compiled(this.model.toJSON()); | |
this.$el.html(html); | |
return this; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment