Remove goog.isNull in image classes

This commit is contained in:
Marc Jansen
2015-09-29 15:20:34 +02:00
parent 138adf0509
commit 30e2f44825
3 changed files with 7 additions and 7 deletions

View File

@@ -78,7 +78,7 @@ ol.ImageCanvas.prototype.handleLoad_ = function(err) {
*/
ol.ImageCanvas.prototype.load = function() {
if (this.state == ol.ImageState.IDLE) {
goog.asserts.assert(!goog.isNull(this.loader_));
goog.asserts.assert(this.loader_, 'this.loader_ must be set');
this.state = ol.ImageState.LOADING;
this.changed();
this.loader_(goog.bind(this.handleLoad_, this));