mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Merge pull request #2073 from Abhishek-90/master
Changed Console.log in SRC
This commit is contained in:
commit
b1cf63eaff
@ -2313,7 +2313,7 @@ function OpenSeadragon( options ){
|
|||||||
protocol !== "https:" )) {
|
protocol !== "https:" )) {
|
||||||
onSuccess( request );
|
onSuccess( request );
|
||||||
} else {
|
} else {
|
||||||
$.console.log( "AJAX request returned %d: %s", request.status, url );
|
$.console.error( "AJAX request returned %d: %s", request.status, url );
|
||||||
|
|
||||||
if ( $.isFunction( onError ) ) {
|
if ( $.isFunction( onError ) ) {
|
||||||
onError( request );
|
onError( request );
|
||||||
@ -2343,7 +2343,7 @@ function OpenSeadragon( options ){
|
|||||||
|
|
||||||
request.send(null);
|
request.send(null);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
$.console.log( "%s while making AJAX request: %s", e.name, e.message );
|
$.console.error( "%s while making AJAX request: %s", e.name, e.message );
|
||||||
|
|
||||||
request.onreadystatechange = function(){};
|
request.onreadystatechange = function(){};
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ $.ReferenceStrip.prototype = {
|
|||||||
*/
|
*/
|
||||||
update: function () {
|
update: function () {
|
||||||
if ( THIS[this.id].animating ) {
|
if ( THIS[this.id].animating ) {
|
||||||
$.console.log( 'image reference strip update' );
|
// $.console.log( 'image reference strip update' );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -83,7 +83,7 @@ $.extend( $, /** @lends OpenSeadragon */{
|
|||||||
string = container[ props[ i ] ];
|
string = container[ props[ i ] ];
|
||||||
|
|
||||||
if ( typeof ( string ) !== "string" ) {
|
if ( typeof ( string ) !== "string" ) {
|
||||||
$.console.log( "Untranslated source string:", prop );
|
$.console.error( "Untranslated source string:", prop );
|
||||||
string = ""; // FIXME: this breaks gettext()-style convention, which would return source
|
string = ""; // FIXME: this breaks gettext()-style convention, which would return source
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1608,7 +1608,7 @@ function loadTile( tiledImage, tile, time ) {
|
|||||||
*/
|
*/
|
||||||
function onTileLoad( tiledImage, tile, time, image, errorMsg, tileRequest ) {
|
function onTileLoad( tiledImage, tile, time, image, errorMsg, tileRequest ) {
|
||||||
if ( !image ) {
|
if ( !image ) {
|
||||||
$.console.log( "Tile %s failed to load: %s - error: %s", tile, tile.url, errorMsg );
|
$.console.error( "Tile %s failed to load: %s - error: %s", tile, tile.url, errorMsg );
|
||||||
/**
|
/**
|
||||||
* Triggered when a tile fails to load.
|
* Triggered when a tile fails to load.
|
||||||
*
|
*
|
||||||
@ -1634,7 +1634,7 @@ function onTileLoad( tiledImage, tile, time, image, errorMsg, tileRequest ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( time < tiledImage.lastResetTime ) {
|
if ( time < tiledImage.lastResetTime ) {
|
||||||
$.console.log( "Ignoring tile %s loaded before reset: %s", tile, tile.url );
|
$.console.warn( "Ignoring tile %s loaded before reset: %s", tile, tile.url );
|
||||||
tile.loading = false;
|
tile.loading = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user