Skip to content

Instantly share code, notes, and snippets.

@jschilli
Created January 24, 2012 16:04
Show Gist options
  • Save jschilli/1670853 to your computer and use it in GitHub Desktop.
Save jschilli/1670853 to your computer and use it in GitHub Desktop.
var App = SC.Application.create();
App.MyView = SC.View.extend({
defaultTemplate:Ember.Handlebars.compile('<h1>TestView</h1'),
classNames: ['test-view'],
tapEnd:function() {
console.log('tap recieved');
alert('tap end');
},
touchHoldOptions:{
holdPeriod:1000,
moveThreshold:50
},
tapOptions: {
numberOfTaps: 2
},
touchHoldEnd:function(recognizer) {
alert('long press in chart');
},
});
App.testView = App.MyView.create();
App.testView.append();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment