Inline !goog.isDef() property checks
This commit is contained in:
@@ -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_) : '-');
|
||||
}
|
||||
|
||||
@@ -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_) : '-') + ',' +
|
||||
|
||||
Reference in New Issue
Block a user