Skip to content

Instantly share code, notes, and snippets.

@askhogan
Created April 10, 2013 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save askhogan/5357024 to your computer and use it in GitHub Desktop.
Save askhogan/5357024 to your computer and use it in GitHub Desktop.
({
events : {
"click span.stock-symbol" : "stockClicked"
},
stockClicked : function(e) {
console.log(e.target);
alert(this.model.get("ticker_symbol"));
},
myName: "Foo",
_render: function(){
app.view.View.prototype._render.call(this);
//this.$el.append("<br/>Bar!");
},
bindDataChange: function () {
this.model.on("change:ticker_symbol", this.loadData, this);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment