Confusing use of '!'.

This commit is contained in:
Frederic Junod
2012-03-16 14:23:43 +01:00
parent 20e35b19ff
commit 5557693df1
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ OpenLayers.Request = {
* will be the same as the provided url.
*/
makeSameOrigin: function(url, proxy) {
var sameOrigin = !(url.indexOf("http") == 0);
var sameOrigin = url.indexOf("http") !== 0;
var urlParts = !sameOrigin && url.match(this.URL_SPLIT_REGEX);
if (urlParts) {
var location = window.location;