Use bracket notation instead of goog.object.get
This commit is contained in:
@@ -240,7 +240,7 @@ ol.render.canvas.Replay.prototype.replay_ = function(
|
||||
case ol.render.canvas.Instruction.BEGIN_GEOMETRY:
|
||||
feature = /** @type {ol.Feature} */ (instruction[1]);
|
||||
var featureUid = goog.getUid(feature).toString();
|
||||
if (!goog.isDef(goog.object.get(skippedFeaturesHash, featureUid))) {
|
||||
if (!goog.isDef(skippedFeaturesHash[featureUid])) {
|
||||
++i;
|
||||
} else {
|
||||
i = /** @type {number} */ (instruction[2]);
|
||||
|
||||
@@ -451,7 +451,7 @@ ol.render.webgl.ImageReplay.prototype.finish = function(context) {
|
||||
|
||||
uid = goog.getUid(image).toString();
|
||||
if (goog.object.containsKey(texturePerImage, uid)) {
|
||||
texture = goog.object.get(texturePerImage, uid);
|
||||
texture = texturePerImage[uid];
|
||||
} else {
|
||||
texture = gl.createTexture();
|
||||
gl.bindTexture(goog.webgl.TEXTURE_2D, texture);
|
||||
|
||||
Reference in New Issue
Block a user