Rename ol/objectutil.js to ol/obj.js
This commit is contained in:
@@ -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)');
|
||||
|
||||
@@ -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_);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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_);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user