Created
July 10, 2011 23:41
-
-
Save jtaby/1075094 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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