Skip to content

Instantly share code, notes, and snippets.

@sevifives
Created March 16, 2012 19:20
Show Gist options
  • Save sevifives/2051972 to your computer and use it in GitHub Desktop.
Save sevifives/2051972 to your computer and use it in GitHub Desktop.
SC.View.extend({
displayProperties: 'content'.w(),
mouseDown: function (evt) {
var target = evt.originalTarget || evt.target;
if (target.id === 'my-fake-button') {
// send an event
}
},
render: function (context,firstTime) {
context.push('<div id="my-fake-button">Test</div>');
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment