Target is now optional argument for gesture constructor (since I made target as getter AND setter recently)

This commit is contained in:
Pavel fljot 2011-05-02 13:36:29 +03:00
parent 289b3a800b
commit 151d0ddca6
8 changed files with 8 additions and 8 deletions

View file

@ -70,7 +70,7 @@ package org.gestouch.gestures
protected var _lastCentralPoint:Point;
public function DoubleTapGesture(target:InteractiveObject, settings:Object = null)
public function DoubleTapGesture(target:InteractiveObject = null, settings:Object = null)
{
super(target, settings);
}

View file

@ -25,7 +25,7 @@ package org.gestouch.gestures
*/
public class DragGesture extends MovingGestureBase
{
public function DragGesture(target:InteractiveObject, settings:Object = null)
public function DragGesture(target:InteractiveObject = null, settings:Object = null)
{
super(target, settings);
}

View file

@ -41,7 +41,7 @@ package org.gestouch.gestures
protected var _lastLocalCentralPoint:Point;
public function Gesture(target:InteractiveObject, settings:Object = null)
public function Gesture(target:InteractiveObject = null, settings:Object = null)
{
// Check if gesture reflects it's class properly
reflect();

View file

@ -33,7 +33,7 @@ package org.gestouch.gestures
protected var _thresholdTimer:Timer;
public function LongPressGesture(target:InteractiveObject, settings:Object = null)
public function LongPressGesture(target:InteractiveObject = null, settings:Object = null)
{
super(target, settings);
}

View file

@ -30,7 +30,7 @@ package org.gestouch.gestures
protected var _canMoveVertically:Boolean = true;
public function MovingGestureBase(target:InteractiveObject, settings:Object = null)
public function MovingGestureBase(target:InteractiveObject = null, settings:Object = null)
{
super(target, settings);

View file

@ -37,7 +37,7 @@ package org.gestouch.gestures
//
//--------------------------------------------------------------------------
public static function add(target:InteractiveObject, settings:Object = null):RotateGesture
public static function add(target:InteractiveObject = null, settings:Object = null):RotateGesture
{
return new RotateGesture(target, settings);
}

View file

@ -35,7 +35,7 @@ package org.gestouch.gestures
protected var _startTime:uint;
public function SwipeGesture(target:InteractiveObject, settings:Object = null)
public function SwipeGesture(target:InteractiveObject = null, settings:Object = null)
{
super(target, settings);
}

View file

@ -37,7 +37,7 @@ package org.gestouch.gestures
//
//--------------------------------------------------------------------------
public static function add(target:InteractiveObject, settings:Object = null):ZoomGesture
public static function add(target:InteractiveObject = null, settings:Object = null):ZoomGesture
{
return new ZoomGesture(target, settings);
}