Fix coding style

Use `goog.isDef(x) ? x : {}` instead of `x || {}`
This commit is contained in:
Frederic Junod
2014-04-08 11:40:02 +02:00
parent aa6c188da6
commit 17ed43d230
3 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ ol.control.ScaleLineUnits = {
*/
ol.control.ScaleLine = function(opt_options) {
var options = opt_options || {};
var options = goog.isDef(opt_options) ? opt_options : {};
var className = goog.isDef(options.className) ?
options.className : 'ol-scale-line';