Inline goog.isDef() calls for properties

This commit is contained in:
Tim Schaub
2015-09-27 10:40:20 -06:00
parent 36e336f406
commit 83c59ee255
44 changed files with 200 additions and 198 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ ol.ImageBase.prototype.getPixelRatio = function() {
* @return {number} Resolution.
*/
ol.ImageBase.prototype.getResolution = function() {
goog.asserts.assert(goog.isDef(this.resolution), 'resolution not yet set');
goog.asserts.assert(this.resolution !== undefined, 'resolution not yet set');
return this.resolution;
};