Fix WebGlContextLost handling.
In WebGlRenderer.js, this.contextLost was being used both as a function
created by bind() and as a boolean variable. Not only is this
incorrect, it also would cause problems in Firefox when calling
removeEventListener, as it would expect contextLost to be a function,
but instead it would get a boolean and would raise an error. Chrome did
not raise an error when calling removeEventListener with a boolean
value as the second argument instead of a function.

This patch separates the two uses of this.contextLost, which is how it
should be.
1 parent 72370fa commit 9c7dcc0183009fd91f06acb870ed5d176409b009
@Dusk Eagle Dusk Eagle authored on 31 Aug 2014
Showing 1 changed file
View
src/pixi/renderers/webgl/WebGLRenderer.js