Replace goog.object.clear() with ol.object.clear()

This commit is contained in:
Tim Schaub
2016-02-03 21:56:18 -07:00
parent f38d8bf824
commit fd394151fd
11 changed files with 134 additions and 107 deletions

View File

@@ -2,10 +2,10 @@ goog.provide('ol.webgl.Context');
goog.require('goog.asserts');
goog.require('goog.log');
goog.require('goog.object');
goog.require('ol');
goog.require('ol.array');
goog.require('ol.events');
goog.require('ol.object');
goog.require('ol.webgl.Buffer');
goog.require('ol.webgl.WebGLContextEventType');
@@ -282,9 +282,9 @@ ol.webgl.Context.prototype.getProgram = function(
* FIXME empy description for jsdoc
*/
ol.webgl.Context.prototype.handleWebGLContextLost = function() {
goog.object.clear(this.bufferCache_);
goog.object.clear(this.shaderCache_);
goog.object.clear(this.programCache_);
ol.object.clear(this.bufferCache_);
ol.object.clear(this.shaderCache_);
ol.object.clear(this.programCache_);
this.currentProgram_ = null;
this.hitDetectionFramebuffer_ = null;
this.hitDetectionTexture_ = null;