Remove unnecessary parentheses

This commit is contained in:
Frederic Junod
2014-09-03 14:28:03 +02:00
parent 6e3a5ca7ca
commit aaeb2b6938
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ ol.layer.Layer.visibleAtResolution = function(layerState, resolution) {
* @inheritDoc
*/
ol.layer.Layer.prototype.getLayersArray = function(opt_array) {
var array = (goog.isDef(opt_array)) ? opt_array : [];
var array = goog.isDef(opt_array) ? opt_array : [];
array.push(this);
return array;
};
@@ -72,7 +72,7 @@ ol.layer.Layer.prototype.getLayersArray = function(opt_array) {
* @inheritDoc
*/
ol.layer.Layer.prototype.getLayerStatesArray = function(opt_states) {
var states = (goog.isDef(opt_states)) ? opt_states : [];
var states = goog.isDef(opt_states) ? opt_states : [];
states.push(this.getLayerState());
return states;
};
+2 -2
View File
@@ -179,7 +179,7 @@ goog.exportProperty(
* @inheritDoc
*/
ol.layer.Group.prototype.getLayersArray = function(opt_array) {
var array = (goog.isDef(opt_array)) ? opt_array : [];
var array = goog.isDef(opt_array) ? opt_array : [];
this.getLayers().forEach(function(layer) {
layer.getLayersArray(array);
});
@@ -191,7 +191,7 @@ ol.layer.Group.prototype.getLayersArray = function(opt_array) {
* @inheritDoc
*/
ol.layer.Group.prototype.getLayerStatesArray = function(opt_states) {
var states = (goog.isDef(opt_states)) ? opt_states : [];
var states = goog.isDef(opt_states) ? opt_states : [];
var pos = states.length;