Remove unnecessary parentheses
This commit is contained in:
@@ -112,7 +112,7 @@ ol.interaction.Modify = function(options) {
|
||||
* @private
|
||||
*/
|
||||
this.overlay_ = new ol.FeatureOverlay({
|
||||
style: (goog.isDef(options.style)) ? options.style :
|
||||
style: goog.isDef(options.style) ? options.style :
|
||||
ol.interaction.Modify.getDefaultStyleFunction()
|
||||
});
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ ol.interaction.Select = function(opt_options) {
|
||||
* @type {ol.FeatureOverlay}
|
||||
*/
|
||||
this.featureOverlay_ = new ol.FeatureOverlay({
|
||||
style: (goog.isDef(options.style)) ? options.style :
|
||||
style: goog.isDef(options.style) ? options.style :
|
||||
ol.interaction.Select.getDefaultStyleFunction()
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user