You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2016/03/24 20:59:37 UTC
[16/37] git commit: [flex-asjs] [refs/heads/spark] - add 'running'
property
add 'running' property
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/8471985f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/8471985f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/8471985f
Branch: refs/heads/spark
Commit: 8471985f0e2389713d70b34c19278d67454fd80d
Parents: 8b5fdc1
Author: Alex Harui <ah...@apache.org>
Authored: Sat Feb 27 23:14:16 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Sat Feb 27 23:14:16 2016 -0800
----------------------------------------------------------------------
.../projects/Core/src/main/flex/org/apache/flex/utils/Timer.as | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8471985f/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Timer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Timer.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Timer.as
index 582d884..ad14f3e 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Timer.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/Timer.as
@@ -111,7 +111,11 @@ public class Timer extends EventDispatcher
public var delay:Number;
public var repeatCount:int;
-
+ public function get running():Boolean
+ {
+ return timerInterval != -1;
+ }
+
private var currentCount:int = 0;
private var timerInterval:int = -1;