Skip to content

Commit 6928da6

Browse files
committed
fix sonar
1 parent 662f56b commit 6928da6

31 files changed

+1908
-2341
lines changed

dist/iclient-classic.js

Lines changed: 131 additions & 108 deletions
Large diffs are not rendered by default.

dist/iclient-classic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-leaflet.js

Lines changed: 276 additions & 519 deletions
Large diffs are not rendered by default.

dist/iclient9-leaflet.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-mapboxgl.js

Lines changed: 611 additions & 596 deletions
Large diffs are not rendered by default.

dist/iclient9-mapboxgl.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-openlayers.js

Lines changed: 847 additions & 1062 deletions
Large diffs are not rendered by default.

dist/iclient9-openlayers.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/common/commontypes/Event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export var Event = SuperMap.Event = {
248248
for (var i = elementObservers.length - 1; i >= 0; i--) {
249249
var entry = elementObservers[i];
250250
var args = new Array(entry.element, entry.name, entry.observer, entry.useCapture);
251-
var removed = SuperMap.Event.stopObserving.apply(this, args);
251+
SuperMap.Event.stopObserving.apply(this, args);
252252
}
253253
}
254254
},

src/common/commontypes/Util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,11 +697,11 @@ SuperMap.Util.isInTheSameDomain = function (url) {
697697
documentIndex = documentSubString.indexOf("/");
698698
var documentPortIndex = documentSubString.indexOf(":");
699699
var documentDomainWithPort = documentSubString.substring(0, documentIndex);
700-
var documentPort;
700+
//var documentPort;
701701

702702
var documentprotocol = document.location.protocol;
703703
if (documentPortIndex !== -1) {
704-
documentPort = +documentSubString.substring(documentPortIndex, documentIndex);
704+
// documentPort = +documentSubString.substring(documentPortIndex, documentIndex);
705705
} else {
706706
documentDomainWithPort += ':' + (documentprotocol.toLowerCase() === 'http:' ? 80 : 443);
707707
}

0 commit comments

Comments
 (0)