Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F391275
_base.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
_base.js
View Options
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if
(
!
dojo
.
_hasResource
[
"dojox.timing._base"
]){
dojo
.
_hasResource
[
"dojox.timing._base"
]
=
true
;
dojo
.
provide
(
"dojox.timing._base"
);
dojo
.
experimental
(
"dojox.timing"
);
dojox
.
timing
.
Timer
=
function
(
_1
){
this
.
timer
=
null
;
this
.
isRunning
=
false
;
this
.
interval
=
_1
;
this
.
onStart
=
null
;
this
.
onStop
=
null
;
};
dojo
.
extend
(
dojox
.
timing
.
Timer
,{
onTick
:
function
(){
},
setInterval
:
function
(
_2
){
if
(
this
.
isRunning
){
window
.
clearInterval
(
this
.
timer
);
}
this
.
interval
=
_2
;
if
(
this
.
isRunning
){
this
.
timer
=
window
.
setInterval
(
dojo
.
hitch
(
this
,
"onTick"
),
this
.
interval
);
}
},
start
:
function
(){
if
(
typeof
this
.
onStart
==
"function"
){
this
.
onStart
();
}
this
.
isRunning
=
true
;
this
.
timer
=
window
.
setInterval
(
dojo
.
hitch
(
this
,
"onTick"
),
this
.
interval
);
},
stop
:
function
(){
if
(
typeof
this
.
onStop
==
"function"
){
this
.
onStop
();
}
this
.
isRunning
=
false
;
window
.
clearInterval
(
this
.
timer
);
}});
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 20:21 (20 h, 23 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25344
Default Alt Text
_base.js (1 KB)
Attached To
rZED Zed
Event Timeline
Log In to Comment