aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/src/core/script/engine.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-03-22 16:26:02 -0700
committerJose Antonio Marquez2012-03-22 16:26:02 -0700
commit748a5c55e15809add748a15a87cd730e3fcee4bf (patch)
tree688f3ee299b2985fa5617426a5789d86f518b877 /js/helper-classes/RDGE/src/core/script/engine.js
parent7fbda862c62f37d4c67e4d5a619b7e3cffc309ff (diff)
parentb25195d010417417bb5b2e5362385078d68d9a84 (diff)
downloadninja-748a5c55e15809add748a15a87cd730e3fcee4bf.tar.gz
Merge branch 'refs/heads/Ninja-Montage-Integration' into FileIO-Montage-Components
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/engine.js')
-rwxr-xr-xjs/helper-classes/RDGE/src/core/script/engine.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/helper-classes/RDGE/src/core/script/engine.js b/js/helper-classes/RDGE/src/core/script/engine.js
index f5724665..1341d032 100755
--- a/js/helper-classes/RDGE/src/core/script/engine.js
+++ b/js/helper-classes/RDGE/src/core/script/engine.js
@@ -214,6 +214,11 @@ function Engine()
214 return contextManager.contextMap[optCanvasID]; 214 return contextManager.contextMap[optCanvasID];
215 } 215 }
216 } 216 }
217
218 this.clearContext = function( canvasID )
219 {
220 contextManager.contextMap[canvasID] = undefined;
221 }
217 222
218 /* 223 /*
219 * give the contextID (canvas id) of the context to set 224 * give the contextID (canvas id) of the context to set
@@ -488,7 +493,7 @@ Engine.prototype.registerCanvas = function(canvas, runState) {
488Engine.prototype.unregisterCanvas = function(canvas) { 493Engine.prototype.unregisterCanvas = function(canvas) {
489 stat.closePage(canvas.rdgeid + "_fps"); 494 stat.closePage(canvas.rdgeid + "_fps");
490 contextManager.removeObject(canvas.rdgeCtxHandle); 495 contextManager.removeObject(canvas.rdgeCtxHandle);
491 496 this.clearContext( canvas.rdgeid );
492} 497}
493 498
494Engine.prototype.getCanvas = function( id ) 499Engine.prototype.getCanvas = function( id )