mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +03:00
Stricter linting fixes part 1
This commit is contained in:
parent
4492bdd6d8
commit
f20b7e738c
@ -654,8 +654,7 @@ function processResponse( xhr ){
|
|||||||
} catch (e){
|
} catch (e){
|
||||||
data = xhr.responseText;
|
data = xhr.responseText;
|
||||||
}
|
}
|
||||||
/* eslint-disable no-useless-escape */
|
}else if( responseText.match(/\s*[{[].*/) ){
|
||||||
}else if( responseText.match(/\s*[\{\[].*/) ){
|
|
||||||
try{
|
try{
|
||||||
data = $.parseJSON(responseText);
|
data = $.parseJSON(responseText);
|
||||||
} catch(e){
|
} catch(e){
|
||||||
|
@ -2288,8 +2288,7 @@ function getTileSourceImplementation( viewer, tileSource, imgOptions, successCal
|
|||||||
if ( tileSource.match( /^\s*<.*>\s*$/ ) ) {
|
if ( tileSource.match( /^\s*<.*>\s*$/ ) ) {
|
||||||
tileSource = $.parseXml( tileSource );
|
tileSource = $.parseXml( tileSource );
|
||||||
//json should start with "{" or "[" and end with "}" or "]"
|
//json should start with "{" or "[" and end with "}" or "]"
|
||||||
/* eslint-disable no-useless-escape */
|
} else if ( tileSource.match(/^\s*[{[].*[}\]]\s*$/ ) ) {
|
||||||
} else if ( tileSource.match(/^\s*[\{\[].*[\}\]]\s*$/ ) ) {
|
|
||||||
try {
|
try {
|
||||||
var tileSourceJ = $.parseJSON(tileSource);
|
var tileSourceJ = $.parseJSON(tileSource);
|
||||||
tileSource = tileSourceJ;
|
tileSource = tileSourceJ;
|
||||||
@ -3195,7 +3194,7 @@ function onCanvasScroll( event ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onContainerEnter( event ) {
|
function onContainerEnter( event ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user