index.js
function() {
		this.gl = this.context.gl;
		var gl = this.gl;
		this.vertexBuffer = gl.createBuffer();

		//ignore index buffer if we haven't specified any
		this.indexBuffer = this.numIndices > 0
					? gl.createBuffer()
					: null;

		this.dirty = true;
	}
function() {
		this.gl = this.context.gl;
		var gl = this.gl;
		this.vertexBuffer = gl.createBuffer();

		//ignore index buffer if we haven't specified any
		this.indexBuffer = this.numIndices > 0
					? gl.createBuffer()
					: null;

		this.dirty = true;
	}
function ( ) { this . gl = this . context . gl ; var gl = this . gl ; this . vertexBuffer = gl . createBuffer ( ) ; //ignore index buffer if we haven't specified any this . indexBuffer = this . numIndices > 0 ? gl . createBuffer ( ) : null ; this . dirty = true ; }
recreates the buffers on context loss
recreates the buffers on context loss