flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - dual mode caught that currentCount was private
Date Thu, 02 Feb 2017 23:47:33 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 69500f90e -> 69a026cc8


dual mode caught that currentCount was private


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/69a026cc
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/69a026cc
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/69a026cc

Branch: refs/heads/develop
Commit: 69a026cc843826baad21ad2da6ebc7c7684fcbf0
Parents: 69500f9
Author: Alex Harui <aharui@apache.org>
Authored: Thu Feb 2 15:47:02 2017 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Feb 2 15:47:29 2017 -0800

----------------------------------------------------------------------
 .../Core/src/main/flex/org/apache/flex/utils/Timer.as    | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/69a026cc/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 01295ef..f16efb4 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
@@ -129,14 +129,19 @@ public class Timer extends EventDispatcher
     public var delay:Number;
     public var repeatCount:int;
     
-    private var currentCount:int = 0;
+    private var _currentCount:int = 0;
+	
+	public function get currentCount():int
+	{
+		return _currentCount;
+	}
     
     private var timerInterval:int = -1;
     
     public function reset():void
     {
         stop();
-        currentCount = 0;
+        _currentCount = 0;
     }
     
     public function stop():void
@@ -153,7 +158,7 @@ public class Timer extends EventDispatcher
     
     private function timerHandler():void
     {
-        currentCount++;
+        _currentCount++;
         if (repeatCount > 0 && currentCount >= repeatCount) {
             stop();
         }


Mime
View raw message