Rename goog.DEBUG to ol.DEBUG
This commit is contained in:
@@ -61,7 +61,7 @@ ol.structs.PriorityQueue = function(priorityFunction, keyFunction) {
|
||||
ol.structs.PriorityQueue.DROP = Infinity;
|
||||
|
||||
|
||||
if (goog.DEBUG) {
|
||||
if (ol.DEBUG) {
|
||||
/**
|
||||
* FIXME empty description for jsdoc
|
||||
*/
|
||||
@@ -100,7 +100,7 @@ ol.structs.PriorityQueue.prototype.clear = function() {
|
||||
*/
|
||||
ol.structs.PriorityQueue.prototype.dequeue = function() {
|
||||
var elements = this.elements_;
|
||||
goog.DEBUG && console.assert(elements.length > 0,
|
||||
ol.DEBUG && console.assert(elements.length > 0,
|
||||
'must have elements in order to be able to dequeue');
|
||||
var priorities = this.priorities_;
|
||||
var element = elements[0];
|
||||
@@ -113,7 +113,7 @@ ol.structs.PriorityQueue.prototype.dequeue = function() {
|
||||
this.siftUp_(0);
|
||||
}
|
||||
var elementKey = this.keyFunction_(element);
|
||||
goog.DEBUG && console.assert(elementKey in this.queuedElements_,
|
||||
ol.DEBUG && console.assert(elementKey in this.queuedElements_,
|
||||
'key %s is not listed as queued', elementKey);
|
||||
delete this.queuedElements_[elementKey];
|
||||
return element;
|
||||
|
||||
Reference in New Issue
Block a user