mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-24 22:26:10 +03:00
Expose semi-private processDZIError for use by DziTileSource
This previously wasn't in scope outside of the main OpenSeadragon closure. Now it's exposed with an underscore prefix to encourage people not to think of it as a public interface.
This commit is contained in:
parent
51bb8ca46e
commit
adc4147304
@ -31,7 +31,6 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
/* global processDZIError:true */
|
||||
|
||||
(function( $ ){
|
||||
|
||||
@ -284,7 +283,7 @@ function configureFromXML( tileSource, xmlDoc ){
|
||||
} else if ( rootName == "Collection" ) {
|
||||
throw new Error( $.getString( "Errors.Dzc" ) );
|
||||
} else if ( rootName == "Error" ) {
|
||||
return processDZIError( root );
|
||||
return $._processDZIError( root );
|
||||
}
|
||||
|
||||
throw new Error( $.getString( "Errors.Dzi" ) );
|
||||
|
@ -1934,5 +1934,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
||||
|
||||
throw new Error(message);
|
||||
}
|
||||
// Add an alias so this is in-scope for dzitilesource but obviously not a blessed public method:
|
||||
$._processDZIError = processDZIError;
|
||||
|
||||
}( OpenSeadragon ));
|
||||
|
Loading…
Reference in New Issue
Block a user