Sha256: fa3b400d6f9cd3b345fa537b07251c591aede028fcba4e74764d3a473f4ee69e

Contents?: true

Size: 857 Bytes

Versions: 9

Compression:

Stored size: 857 Bytes

Contents

//>>built
define("dojox/timing/_base",["dojo/_base/kernel","dojo/_base/lang"],function(_1){
_1.experimental("dojox.timing");
_1.getObject("timing",true,dojox);
dojox.timing.Timer=function(_2){
this.timer=null;
this.isRunning=false;
this.interval=_2;
this.onStart=null;
this.onStop=null;
};
_1.extend(dojox.timing.Timer,{onTick:function(){
},setInterval:function(_3){
if(this.isRunning){
window.clearInterval(this.timer);
}
this.interval=_3;
if(this.isRunning){
this.timer=window.setInterval(_1.hitch(this,"onTick"),this.interval);
}
},start:function(){
if(typeof this.onStart=="function"){
this.onStart();
}
this.isRunning=true;
this.timer=window.setInterval(_1.hitch(this,"onTick"),this.interval);
},stop:function(){
if(typeof this.onStop=="function"){
this.onStop();
}
this.isRunning=false;
window.clearInterval(this.timer);
}});
return dojox.timing;
});

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
dojox-rails-0.14.0 vendor/assets/javascripts/dojox/timing/_base.js
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/timing/_base.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/timing/_base.js
dojox-rails-0.11.0 vendor/assets/javascripts/timing/_base.js
dojo-rails-0.9.4 vendor/assets/javascripts/dojox/timing/_base.js
dojo-rails-0.9.3 vendor/assets/javascripts/dojox/timing/_base.js
dojo-rails-0.9.2 vendor/assets/javascripts/dojox/timing/_base.js
dojo-rails-0.9.1 vendor/assets/javascripts/dojox/timing/_base.js
dojo-rails-0.9.0 vendor/assets/javascripts/dojox/timing/_base.js