flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [4/6] git commit: [flex-asjs] [refs/heads/tlf] - fix cursor blinking on FireFox. Timer interval was duplicated
Date Tue, 09 May 2017 18:00:02 GMT
fix cursor blinking on FireFox.  Timer interval was duplicated


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

Branch: refs/heads/tlf
Commit: 85f5ffa2ee2d1be1dbfb0e772ca0afc79855586d
Parents: 3413a1e
Author: Alex Harui <aharui@apache.org>
Authored: Tue May 9 10:25:05 2017 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue May 9 10:25:05 2017 -0700

----------------------------------------------------------------------
 .../projects/Core/src/main/flex/org/apache/flex/utils/Timer.as   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/85f5ffa2/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 5372bdc..ef8fca0 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
@@ -152,6 +152,10 @@ public class Timer extends EventDispatcher
     
     public function start():void
     {
+		// bail if already running.  Is less code than an
+		// isRunning flag?
+		if (timerInterval != -1) return; 
+		
         timerInterval =
             setInterval(timerHandler, delay);
     }


Mime
View raw message