Skip to content

Instantly share code, notes, and snippets.

@jtaby
Created August 10, 2011 03:10
Show Gist options
  • Save jtaby/1136001 to your computer and use it in GitHub Desktop.
Save jtaby/1136001 to your computer and use it in GitHub Desktop.
SC.View.create({
classNames: ['foobar'],
didInsertElement: function() {
this.$().html('<div class="not-pressed">not pressed</div>')
},
touchMove: function(evt){
this.$('.not-pressed').html('pressed')
evt.preventDefault();
},
touchEnd: function(evt){
this.$().html('got a touchEnd')
}
}).append();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment