fix whitespace in comments
This commit is contained in:
parent
cfdbd10431
commit
8c8d0ac7ee
@ -11,6 +11,8 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
|
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
|
||||||
"indent": [2, "tab", {"VariableDeclarator": 0}],
|
"indent": [2, "tab", {"VariableDeclarator": 0}],
|
||||||
|
"curly": 2,
|
||||||
|
"spaced-comment": 2,
|
||||||
"strict": 0,
|
"strict": 0,
|
||||||
"wrap-iife": 0,
|
"wrap-iife": 0,
|
||||||
"key-spacing": 0
|
"key-spacing": 0
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
if (!Array.prototype.map) {
|
if (!Array.prototype.map) {
|
||||||
/*eslint no-extend-native:0*/
|
Array.prototype.map = function (fun) {
|
||||||
Array.prototype.map = function (fun /*, thisp */) {
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
if (this === undefined || this === null) {
|
if (this === undefined || this === null) {
|
||||||
|
@ -155,7 +155,7 @@ L.LineUtil = {
|
|||||||
return new L.Point(x, y, round);
|
return new L.Point(x, y, round);
|
||||||
},
|
},
|
||||||
|
|
||||||
_getBitCode: function (/*Point*/ p, bounds) {
|
_getBitCode: function (p, bounds) {
|
||||||
var code = 0;
|
var code = 0;
|
||||||
|
|
||||||
if (p.x < bounds.min.x) { // left
|
if (p.x < bounds.min.x) { // left
|
||||||
|
@ -44,7 +44,7 @@ L.Map.include({
|
|||||||
if (!offset.x && !offset.y) {
|
if (!offset.x && !offset.y) {
|
||||||
return this.fire('moveend');
|
return this.fire('moveend');
|
||||||
}
|
}
|
||||||
//If we pan too far then chrome gets issues with tiles
|
// If we pan too far, Chrome gets issues with tiles
|
||||||
// and makes them disappear or appear in the wrong place (slightly offset) #2602
|
// and makes them disappear or appear in the wrong place (slightly offset) #2602
|
||||||
if (options.animate !== true && !this.getSize().contains(offset)) {
|
if (options.animate !== true && !this.getSize().contains(offset)) {
|
||||||
this._resetView(this.unproject(this.project(this.getCenter()).add(offset)), this.getZoom());
|
this._resetView(this.unproject(this.project(this.getCenter()).add(offset)), this.getZoom());
|
||||||
|
@ -12,7 +12,7 @@ L.Map.include({
|
|||||||
// enableHighAccuracy: false
|
// enableHighAccuracy: false
|
||||||
},
|
},
|
||||||
|
|
||||||
locate: function (/*Object*/ options) {
|
locate: function (options) {
|
||||||
|
|
||||||
options = this._locateOptions = L.extend({}, this._defaultLocateOptions, options);
|
options = this._locateOptions = L.extend({}, this._defaultLocateOptions, options);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user