Inline !goog.isDef() property checks

This commit is contained in:
Tim Schaub
2015-09-27 10:24:38 -06:00
parent 6638ae855d
commit 3a0683f373
8 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ ol.style.Fill.prototype.setColor = function(color) {
* @inheritDoc
*/
ol.style.Fill.prototype.getChecksum = function() {
if (!goog.isDef(this.checksum_)) {
if (this.checksum_ === undefined) {
this.checksum_ = 'f' + (!goog.isNull(this.color_) ?
ol.color.asString(this.color_) : '-');
}
+1 -1
View File
@@ -203,7 +203,7 @@ ol.style.Stroke.prototype.setWidth = function(width) {
* @inheritDoc
*/
ol.style.Stroke.prototype.getChecksum = function() {
if (!goog.isDef(this.checksum_)) {
if (this.checksum_ === undefined) {
var raw = 's' +
(!goog.isNull(this.color_) ?
ol.color.asString(this.color_) : '-') + ',' +