Replace goog.object.isEmpty() with ol.object.isEmpty()
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
goog.provide('ol.structs.LRUCache');
|
||||
|
||||
goog.require('goog.asserts');
|
||||
goog.require('goog.object');
|
||||
goog.require('ol.object');
|
||||
|
||||
|
||||
/**
|
||||
@@ -46,7 +46,7 @@ ol.structs.LRUCache = function() {
|
||||
*/
|
||||
ol.structs.LRUCache.prototype.assertValid = function() {
|
||||
if (this.count_ === 0) {
|
||||
goog.asserts.assert(goog.object.isEmpty(this.entries_),
|
||||
goog.asserts.assert(ol.object.isEmpty(this.entries_),
|
||||
'entries must be an empty object (count = 0)');
|
||||
goog.asserts.assert(!this.oldest_,
|
||||
'oldest must be null (count = 0)');
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
goog.provide('ol.structs.RBush');
|
||||
|
||||
goog.require('goog.asserts');
|
||||
goog.require('goog.object');
|
||||
goog.require('ol.ext.rbush');
|
||||
goog.require('ol.extent');
|
||||
goog.require('ol.object');
|
||||
|
||||
|
||||
/**
|
||||
@@ -234,7 +234,7 @@ ol.structs.RBush.prototype.forEach_ = function(values, callback, opt_this) {
|
||||
* @return {boolean} Is empty.
|
||||
*/
|
||||
ol.structs.RBush.prototype.isEmpty = function() {
|
||||
return goog.object.isEmpty(this.items_);
|
||||
return ol.object.isEmpty(this.items_);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user