diff options
author | Eric Guzman | 2012-03-27 10:22:42 -0700 |
---|---|---|
committer | Eric Guzman | 2012-03-27 10:22:42 -0700 |
commit | 309b201017da2a4094df4f06adeeff9d396b193a (patch) | |
tree | 92257b32855bcd31dd74967b085a6632fd7dbe9b /js/helper-classes/RDGE/src | |
parent | da03585a0b03220281f6d54d9acf0ae0fafaef16 (diff) | |
parent | 309dde5a8c4599cef6a1052c1ff9ee1ad8ec5858 (diff) | |
download | ninja-309b201017da2a4094df4f06adeeff9d396b193a.tar.gz |
Merge branch 'refs/heads/master' into PresetsPI
Diffstat (limited to 'js/helper-classes/RDGE/src')
-rwxr-xr-x | js/helper-classes/RDGE/src/core/script/engine.js | 7 |
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) { | |||
488 | Engine.prototype.unregisterCanvas = function(canvas) { | 493 | Engine.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 | ||
494 | Engine.prototype.getCanvas = function( id ) | 499 | Engine.prototype.getCanvas = function( id ) |