Skip to content

Instantly share code, notes, and snippets.

@jtaby
Created July 10, 2011 23:41
Show Gist options
  • Save jtaby/1075094 to your computer and use it in GitHub Desktop.
Save jtaby/1075094 to your computer and use it in GitHub Desktop.
var view = SC.View.create(SC.Gesturable, {
pinchStart: function(evt) {
},
pinchChange: function(evt) {
},
pinchEnd: function(evt) {
}
});
var gestures = get(view, 'gestures');
ok(gestures,'Should have a gestures property');
equals(gestures.length,1,'Should have one gesture');
ok(gestures[0] instanceof SC.PinchGestureRecognizer,'gesture should be pinch');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment