summaryrefslogtreecommitdiffstats
path: root/branches/1.0/schemas/OMNA Schema-based Namespace Registry_fichiers/Ticker.js
diff options
context:
space:
mode:
Diffstat (limited to 'branches/1.0/schemas/OMNA Schema-based Namespace Registry_fichiers/Ticker.js')
-rw-r--r--branches/1.0/schemas/OMNA Schema-based Namespace Registry_fichiers/Ticker.js65
1 files changed, 0 insertions, 65 deletions
diff --git a/branches/1.0/schemas/OMNA Schema-based Namespace Registry_fichiers/Ticker.js b/branches/1.0/schemas/OMNA Schema-based Namespace Registry_fichiers/Ticker.js
deleted file mode 100644
index d9acab9..0000000
--- a/branches/1.0/schemas/OMNA Schema-based Namespace Registry_fichiers/Ticker.js
+++ /dev/null
@@ -1,65 +0,0 @@
-if (typeof window.RadControlsNamespace == "undefined")
-{
- window.RadControlsNamespace = {};
-}
-
-RadControlsNamespace.Ticker = function (listener)
-{
- this.Listener = listener;
- this.IntervalPointer = null;
-}
-
-RadControlsNamespace.Ticker.prototype =
-{
- Configure : function (config)
- {
- this.Duration = config.Duration;
- this.Interval = 16;
- },
-
- Start : function ()
- {
- clearInterval(this.IntervalPointer);
- this.TimeElapsed = 0;
- var instance = this;
- var closure = function ()
- {
- instance.Tick();
- }
-
- this.Tick();
- this.IntervalPointer = setInterval(closure, this.Interval);
- },
-
- Tick : function ()
- {
- this.TimeElapsed += this.Interval;
- this.Listener.OnTick(this.TimeElapsed);
-
- if (this.TimeElapsed >= this.Duration)
- {
- this.Stop();
- }
- },
-
- Stop : function ()
- {
- if (this.IntervalPointer)
- {
- this.Listener.OnTickEnd();
- clearInterval(this.IntervalPointer);
- this.IntervalPointer = null;
- }
- }
-
-}
-
-//BEGIN_ATLAS_NOTIFY
-if (typeof(Sys) != "undefined")
-{
- if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null)
- {
- Sys.Application.notifyScriptLoaded();
- }
-}
-//END_ATLAS_NOTIFY \ No newline at end of file
OpenPOWER on IntegriCloud