Skip to content
This repository
Browse code

Remove unnecessary casting

  • Loading branch information...
commit eab6cb4a1c2bd4e121c14444bed741575d3c9236 1 parent 4bdefd1
Pavel Pevnitskiy authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 src/org/gestouch/core/GesturesManager.as
8 src/org/gestouch/core/GesturesManager.as
@@ -243,7 +243,7 @@ package org.gestouch.core
243 243 i = gesturesForTarget.length;
244 244 while (i-- > 0)
245 245 {
246   - gesture = gesturesForTarget[i] as Gesture;
  246 + gesture = gesturesForTarget[i];
247 247 if (gesture.enabled &&
248 248 (!gesture.delegate || gesture.delegate.gestureShouldReceiveTouch(gesture, touch)))
249 249 {
@@ -259,7 +259,7 @@ package org.gestouch.core
259 259 i = gesturesForTouch.length;
260 260 while (i-- > 0)
261 261 {
262   - gesture = gesturesForTouch[i] as Gesture;
  262 + gesture = gesturesForTouch[i];
263 263 // Check for state because previous (i+1) gesture may already abort current (i) one
264 264 if (gesture.state != GestureState.FAILED)
265 265 {
@@ -285,7 +285,7 @@ package org.gestouch.core
285 285 var i:int = gesturesForTouch.length;
286 286 while (i-- > 0)
287 287 {
288   - gesture = gesturesForTouch[i] as Gesture;
  288 + gesture = gesturesForTouch[i];
289 289
290 290 if (gesture.state != GestureState.FAILED && gesture.isTrackingTouch(touch.id))
291 291 {
@@ -312,7 +312,7 @@ package org.gestouch.core
312 312 var i:int = gesturesForTouch.length;
313 313 while (i-- > 0)
314 314 {
315   - gesture = gesturesForTouch[i] as Gesture;
  315 + gesture = gesturesForTouch[i];
316 316
317 317 if (gesture.state != GestureState.FAILED && gesture.isTrackingTouch(touch.id))
318 318 {

0 comments on commit eab6cb4

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