Skip to content
Browse files

Remove unnecessary casting

  • Loading branch information...
1 parent 4bdefd1 commit eab6cb4a1c2bd4e121c14444bed741575d3c9236 @fljot committed Jul 20, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/org/gestouch/core/GesturesManager.as
View
8 src/org/gestouch/core/GesturesManager.as
@@ -243,7 +243,7 @@ package org.gestouch.core
i = gesturesForTarget.length;
while (i-- > 0)
{
- gesture = gesturesForTarget[i] as Gesture;
+ gesture = gesturesForTarget[i];
if (gesture.enabled &&
(!gesture.delegate || gesture.delegate.gestureShouldReceiveTouch(gesture, touch)))
{
@@ -259,7 +259,7 @@ package org.gestouch.core
i = gesturesForTouch.length;
while (i-- > 0)
{
- gesture = gesturesForTouch[i] as Gesture;
+ gesture = gesturesForTouch[i];
// Check for state because previous (i+1) gesture may already abort current (i) one
if (gesture.state != GestureState.FAILED)
{
@@ -285,7 +285,7 @@ package org.gestouch.core
var i:int = gesturesForTouch.length;
while (i-- > 0)
{
- gesture = gesturesForTouch[i] as Gesture;
+ gesture = gesturesForTouch[i];
if (gesture.state != GestureState.FAILED && gesture.isTrackingTouch(touch.id))
{
@@ -312,7 +312,7 @@ package org.gestouch.core
var i:int = gesturesForTouch.length;
while (i-- > 0)
{
- gesture = gesturesForTouch[i] as Gesture;
+ gesture = gesturesForTouch[i];
if (gesture.state != GestureState.FAILED && gesture.isTrackingTouch(touch.id))
{

0 comments on commit eab6cb4

Please sign in to comment.
Something went wrong with that request. Please try again.