Rename ol/objectutil.js to ol/obj.js

This commit is contained in:
Tim Schaub
2016-08-06 13:21:38 -06:00
parent bbf91b3477
commit 1b8310a6fe
53 changed files with 161 additions and 161 deletions

View File

@@ -1,6 +1,6 @@
goog.provide('ol.structs.LRUCache');
goog.require('ol.object');
goog.require('ol.obj');
/**
@@ -46,7 +46,7 @@ if (goog.DEBUG) {
*/
ol.structs.LRUCache.prototype.assertValid = function() {
if (this.count_ === 0) {
console.assert(ol.object.isEmpty(this.entries_),
console.assert(ol.obj.isEmpty(this.entries_),
'entries must be an empty object (count = 0)');
console.assert(!this.oldest_,
'oldest must be null (count = 0)');

View File

@@ -1,6 +1,6 @@
goog.provide('ol.structs.PriorityQueue');
goog.require('ol.object');
goog.require('ol.obj');
/**
@@ -89,7 +89,7 @@ if (goog.DEBUG) {
ol.structs.PriorityQueue.prototype.clear = function() {
this.elements_.length = 0;
this.priorities_.length = 0;
ol.object.clear(this.queuedElements_);
ol.obj.clear(this.queuedElements_);
};

View File

@@ -2,7 +2,7 @@ goog.provide('ol.structs.RBush');
goog.require('ol.ext.rbush');
goog.require('ol.extent');
goog.require('ol.object');
goog.require('ol.obj');
/**
@@ -243,7 +243,7 @@ ol.structs.RBush.prototype.forEach_ = function(values, callback, opt_this) {
* @return {boolean} Is empty.
*/
ol.structs.RBush.prototype.isEmpty = function() {
return ol.object.isEmpty(this.items_);
return ol.obj.isEmpty(this.items_);
};