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 2017/05/09 18:00:02 UTC
[4/6] git commit: [flex-asjs] [refs/heads/tlf] - fix cursor blinking
on FireFox. Timer interval was duplicated
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 <ah...@apache.org>
Authored: Tue May 9 10:25:05 2017 -0700
Committer: Alex Harui <ah...@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);
}