Remove use of goog.array.isEmpty

This commit is contained in:
Frederic Junod
2015-09-22 11:25:04 +02:00
parent 44b1c9da89
commit 0d23ab44b3
5 changed files with 5 additions and 9 deletions

View File

@@ -108,7 +108,7 @@ ol.control.Control.prototype.setMap = function(map) {
if (!goog.isNull(this.map_)) {
goog.dom.removeNode(this.element);
}
if (!goog.array.isEmpty(this.listenerKeys)) {
if (this.listenerKeys.length > 0) {
goog.array.forEach(this.listenerKeys, goog.events.unlistenByKey);
this.listenerKeys.length = 0;
}