Remove use of goog.array.forEach
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
goog.provide('ol.Image');
|
||||
|
||||
goog.require('goog.array');
|
||||
goog.require('goog.asserts');
|
||||
goog.require('goog.events');
|
||||
goog.require('goog.events.EventType');
|
||||
@@ -151,6 +150,6 @@ ol.Image.prototype.load = function() {
|
||||
ol.Image.prototype.unlistenImage_ = function() {
|
||||
goog.asserts.assert(!goog.isNull(this.imageListenerKeys_),
|
||||
'this.imageListenerKeys_ should not be null');
|
||||
goog.array.forEach(this.imageListenerKeys_, goog.events.unlistenByKey);
|
||||
this.imageListenerKeys_.forEach(goog.events.unlistenByKey);
|
||||
this.imageListenerKeys_ = null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user