Remove remaining goog.isDef() calls

This commit is contained in:
Tim Schaub
2015-09-27 11:13:58 -06:00
parent c48ce003ba
commit 29a1ea9ae3
7 changed files with 31 additions and 18 deletions

View File

@@ -259,9 +259,10 @@ ol.source.ImageVector.prototype.handleSourceChange_ = function() {
ol.source.ImageVector.prototype.renderFeature_ =
function(feature, resolution, pixelRatio, replayGroup) {
var styles;
if (goog.isDef(feature.getStyleFunction())) {
styles = feature.getStyleFunction().call(feature, resolution);
} else if (this.styleFunction_ !== undefined) {
var styleFunction = feature.getStyleFunction();
if (styleFunction) {
styles = styleFunction.call(feature, resolution);
} else if (this.styleFunction_) {
styles = this.styleFunction_(feature, resolution);
}
if (!goog.isDefAndNotNull(styles)) {