aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/src/core/script/runtime.js
diff options
context:
space:
mode:
authorAnanya Sen2012-02-23 13:52:32 -0800
committerAnanya Sen2012-02-23 13:52:32 -0800
commitec3d07c2fea4e79c68606234074f43d694982e5b (patch)
treedc7c830c361d35c04a4d9b6d55c6c36d7a5d61cd /js/helper-classes/RDGE/src/core/script/runtime.js
parent7283884c39df537694b21419a3ea9e3ca7793b4b (diff)
parent287a0bad5b774a380ec6c8b3ddf24dc03234e248 (diff)
downloadninja-ec3d07c2fea4e79c68606234074f43d694982e5b.tar.gz
Merge branch 'refs/heads/FileIO-jose' into FileIO
Conflicts: js/document/html-document.js js/helper-classes/3D/snap-manager.js Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/runtime.js')
-rwxr-xr-xjs/helper-classes/RDGE/src/core/script/runtime.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/js/helper-classes/RDGE/src/core/script/runtime.js b/js/helper-classes/RDGE/src/core/script/runtime.js
index 18b9b223..3d824faf 100755
--- a/js/helper-classes/RDGE/src/core/script/runtime.js
+++ b/js/helper-classes/RDGE/src/core/script/runtime.js
@@ -206,11 +206,15 @@ RDGETask = (function() {
206 self.lastTime = self.currTime; 206 self.lastTime = self.currTime;
207 } 207 }
208 208
209 this.start = function() { 209 this.start = function()
210 this.running = true; 210 {
211 this.currTime = new Date().getTime(); 211 if (!this.running)
212 this.lastTime = this.currTime; 212 {
213 tasks[this.id](); 213 this.running = true;
214 this.currTime = new Date().getTime();
215 this.lastTime = this.currTime;
216 tasks[this.id]();
217 }
214 } 218 }
215 219
216 this.stop = function() { 220 this.stop = function() {