Merge pull request #4176 from tschaub/remove-isdefandnotnull

Remove use of goog.isDefAndNotNull().
This commit is contained in:
Tim Schaub
2015-10-01 00:05:57 -06:00
45 changed files with 116 additions and 135 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ ol.style.Style.prototype.setGeometry = function(geometry) {
} else if (goog.isString(geometry)) {
this.geometryFunction_ = function(feature) {
var result = feature.get(geometry);
if (goog.isDefAndNotNull(result)) {
if (result) {
goog.asserts.assertInstanceof(result, ol.geom.Geometry,
'feature geometry must be an ol.geom.Geometry instance');
}