Remove gratuitous debug assertions
This commit is contained in:
@@ -63,8 +63,6 @@ ol.render.Box.prototype.disposeInternal = function() {
|
||||
ol.render.Box.prototype.render_ = function() {
|
||||
var startPixel = this.startPixel_;
|
||||
var endPixel = this.endPixel_;
|
||||
goog.DEBUG && console.assert(startPixel, 'this.startPixel_ must be truthy');
|
||||
goog.DEBUG && console.assert(endPixel, 'this.endPixel_ must be truthy');
|
||||
var px = 'px';
|
||||
var style = this.element_.style;
|
||||
style.left = Math.min(startPixel[0], endPixel[0]) + px;
|
||||
@@ -106,11 +104,6 @@ ol.render.Box.prototype.setPixels = function(startPixel, endPixel) {
|
||||
* Creates or updates the cached geometry.
|
||||
*/
|
||||
ol.render.Box.prototype.createOrUpdateGeometry = function() {
|
||||
goog.DEBUG && console.assert(this.startPixel_,
|
||||
'this.startPixel_ must be truthy');
|
||||
goog.DEBUG && console.assert(this.endPixel_,
|
||||
'this.endPixel_ must be truthy');
|
||||
goog.DEBUG && console.assert(this.map_, 'this.map_ must be truthy');
|
||||
var startPixel = this.startPixel_;
|
||||
var endPixel = this.endPixel_;
|
||||
var pixels = [
|
||||
|
||||
Reference in New Issue
Block a user