Fix coding style
Use `goog.isDef(x) ? x : {}` instead of `x || {}`
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ ol.View2DProperty = {
|
||||
*/
|
||||
ol.View2D = function(opt_options) {
|
||||
goog.base(this);
|
||||
var options = opt_options || {};
|
||||
var options = goog.isDef(opt_options) ? opt_options : {};
|
||||
|
||||
/**
|
||||
* @type {Object.<string, *>}
|
||||
|
||||
Reference in New Issue
Block a user