-
-
Save tgriesser/3188993 to your computer and use it in GitHub Desktop.
No events…
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
namespace 'TimeLog.View', (exports) -> | |
class exports.Log extends Backbone.View | |
tagName: 'li' | |
events: | |
'click .date': 'lala' | |
template = _.template(""" | |
<div class="date"><%= date %></div> | | |
<div ><%= time %></div> | | |
<div ><%= ticket %></div> | |
""") | |
initialize: -> | |
console.log 'Initialize LogView' | |
@model.on('change', @render, @) | |
render: -> | |
@$el.html(@template(@model.toJSON())) | |
this | |
lala: -> | |
console.log 'editable…' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment