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

This commit is contained in:
Tim Schaub
2016-02-03 21:17:32 -07:00
parent 0dce343d4f
commit 8aecb3270c
17 changed files with 71 additions and 47 deletions

View File

@@ -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)');

View File

@@ -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_);
};