Add missing semicolon

This commit is contained in:
Frederic Junod
2016-06-09 15:32:58 +02:00
parent 08f8cd0f16
commit 4bf1f56405
33 changed files with 56 additions and 56 deletions
+9 -9
View File
@@ -36,7 +36,7 @@ ol.array.binarySearch = function(haystack, needle, opt_comparator) {
/* Key not found. */
return found ? low : ~low;
}
};
/**
* @param {Array.<number>} arr Array.
@@ -188,11 +188,11 @@ ol.array.flatten = function(arr) {
ol.array.extend = function(arr, data) {
var i;
var extension = goog.isArrayLike(data) ? data : [data];
var length = extension.length
var length = extension.length;
for (i = 0; i < length; i++) {
arr[arr.length] = extension[i];
}
}
};
/**
@@ -208,7 +208,7 @@ ol.array.remove = function(arr, obj) {
arr.splice(i, 1);
}
return found;
}
};
/**
@@ -228,7 +228,7 @@ ol.array.find = function(arr, func) {
}
}
return null;
}
};
/**
@@ -247,7 +247,7 @@ ol.array.equals = function(arr1, arr2) {
}
}
return true;
}
};
/**
@@ -267,7 +267,7 @@ ol.array.stableSort = function(arr, compareFnc) {
for (i = 0; i < arr.length; i++) {
arr[i] = tmp[i].value;
}
}
};
/**
@@ -282,7 +282,7 @@ ol.array.findIndex = function(arr, func) {
return !func(el, idx, arr);
});
return found ? index : -1;
}
};
/**
@@ -300,4 +300,4 @@ ol.array.isSorted = function(arr, opt_func, opt_strict) {
var res = compare(arr[index - 1], currentVal);
return !(res > 0 || opt_strict && res === 0);
});
}
};
+1 -1
View File
@@ -37,7 +37,7 @@ ol.control.MousePosition = function(opt_options) {
var options = opt_options ? opt_options : {};
var element = document.createElement('DIV');
element.className = options.className !== undefined ? options.className : 'ol-mouse-position'
element.className = options.className !== undefined ? options.className : 'ol-mouse-position';
var render = options.render ?
options.render : ol.control.MousePosition.render;
+2 -2
View File
@@ -74,7 +74,7 @@ ol.events.bindListener_ = function(listenerObj) {
ol.events.unlistenByKey(listenerObj);
}
return listener.call(bindTo, evt);
}
};
listenerObj.boundListener = boundListener;
return boundListener;
};
@@ -150,7 +150,7 @@ ol.events.removeListeners_ = function(target, type) {
if (listeners) {
for (var i = 0, ii = listeners.length; i < ii; ++i) {
target.removeEventListener(type, listeners[i].boundListener);
ol.object.clear(listeners[i])
ol.object.clear(listeners[i]);
}
listeners.length = 0;
var listenerMap = target[ol.events.LISTENER_MAP_PROP_];
+1 -1
View File
@@ -157,7 +157,7 @@ ol.interaction.DragAndDrop.prototype.setMap = function(map) {
ol.interaction.DragAndDrop.handleStop_, this),
ol.events.listen(dropArea, ol.events.EventType.DROP,
ol.interaction.DragAndDrop.handleStop_, this)
]
];
}
};
+2 -2
View File
@@ -42,14 +42,14 @@ ol.interaction.KeyboardPan = function(opt_options) {
this.defaultCondition_ = function(mapBrowserEvent) {
return ol.events.condition.noModifierKeys(mapBrowserEvent) &&
ol.events.condition.targetNotEditable(mapBrowserEvent);
}
};
/**
* @private
* @type {ol.events.ConditionType}
*/
this.condition_ = options.condition !== undefined ?
options.condition : this.defaultCondition_
options.condition : this.defaultCondition_;
/**
* @private
+1 -1
View File
@@ -117,7 +117,7 @@ ol.interaction.Modify = function(options) {
this.defaultDeleteCondition_ = function(mapBrowserEvent) {
return ol.events.condition.noModifierKeys(mapBrowserEvent) &&
ol.events.condition.singleClick(mapBrowserEvent);
}
};
/**
* @type {ol.events.ConditionType}
@@ -259,7 +259,7 @@ ol.renderer.canvas.TileLayer.prototype.renderTileImages = function(context, fram
drawOffsetX = (drawSize - width) / 2 / drawScale;
drawOffsetY = (drawSize - height) / 2 / drawScale;
pixelScale *= drawScale;
offsetX = Math.round(drawScale * (offsetX + drawOffsetX))
offsetX = Math.round(drawScale * (offsetX + drawOffsetX));
offsetY = Math.round(drawScale * (offsetY + drawOffsetY));
}
// for performance reasons, context.save / context.restore is not used
@@ -445,4 +445,4 @@ ol.renderer.canvas.VectorTileLayer.prototype.renderTileImage_ = function(
replayState.replayGroup.replay(tileContext, pixelRatio,
tileTransform, 0, frameState.skippedFeatureUids || {}, replays);
}
}
};
+1 -1
View File
@@ -27,7 +27,7 @@ ol.reproj.browserAntialiasesClip_ = (function(winNav, winChrome) {
isOpera == false && // Not Opera
isIEedge == false // Not Edge
);
})(goog.global.navigator, goog.global.chrome)
})(goog.global.navigator, goog.global.chrome);
/**
+1 -1
View File
@@ -148,7 +148,7 @@ ol.source.CartoDB.prototype.handleInitResponse_ = function(paramHash, event) {
*/
ol.source.CartoDB.prototype.handleInitError_ = function(event) {
this.setState(ol.source.State.ERROR);
}
};
/**
+1 -1
View File
@@ -99,7 +99,7 @@ ol.source.Source.toAttributionsArray_ = function(attributionLike) {
} else {
return null;
}
}
};
/**
+1 -1
View File
@@ -175,7 +175,7 @@ ol.style.AtlasManager.prototype.add = function(id, width, height,
// the hit-detection atlas, to make sure that the offset is the same for
// the original image and the hit-detection image.
var renderHitCallback = opt_renderHitCallback !== undefined ?
opt_renderHitCallback : ol.nullFunction
opt_renderHitCallback : ol.nullFunction;
/** @type {?ol.style.AtlasInfo} */
var hitInfo = this.add_(true,
+2 -2
View File
@@ -14,8 +14,8 @@ ol.uri.appendParams = function(uri, params) {
return k + '=' + encodeURIComponent(params[k]);
}).join('&');
// remove any trailing ? or &
uri = uri.replace(/[?&]$/, '')
uri = uri.replace(/[?&]$/, '');
// append ? or & depending on whether uri has existing parameters
uri = uri.indexOf('?') === -1 ? uri + '?' : uri + '&'
uri = uri.indexOf('?') === -1 ? uri + '?' : uri + '&';
return uri + qs;
};