mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 08:36:10 +03:00
removed _DziTileSourceHelper anti-pattern in favor of direct object literal containing helper methods
This commit is contained in:
parent
9642ca18e7
commit
f1882259e2
@ -2652,11 +2652,8 @@ $.DziTileSource.prototype.tileExists = function(level, x, y) {
|
|||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
$._DziTileSourceHelper = function() {
|
|
||||||
|
|
||||||
};
|
$.DziTileSourceHelper = {
|
||||||
|
|
||||||
$._DziTileSourceHelper.prototype = {
|
|
||||||
createFromXml: function(xmlUrl, xmlString, callback) {
|
createFromXml: function(xmlUrl, xmlString, callback) {
|
||||||
var async = typeof (callback) == "function";
|
var async = typeof (callback) == "function";
|
||||||
var error = null;
|
var error = null;
|
||||||
@ -2802,7 +2799,6 @@ $._DziTileSourceHelper.prototype = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$.DziTileSourceHelper = new $._DziTileSourceHelper();
|
|
||||||
|
|
||||||
}( OpenSeadragon ));
|
}( OpenSeadragon ));
|
||||||
|
|
||||||
|
@ -70,11 +70,8 @@ $.DziTileSource.prototype.tileExists = function(level, x, y) {
|
|||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
$._DziTileSourceHelper = function() {
|
|
||||||
|
|
||||||
};
|
$.DziTileSourceHelper = {
|
||||||
|
|
||||||
$._DziTileSourceHelper.prototype = {
|
|
||||||
createFromXml: function(xmlUrl, xmlString, callback) {
|
createFromXml: function(xmlUrl, xmlString, callback) {
|
||||||
var async = typeof (callback) == "function";
|
var async = typeof (callback) == "function";
|
||||||
var error = null;
|
var error = null;
|
||||||
@ -220,6 +217,5 @@ $._DziTileSourceHelper.prototype = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$.DziTileSourceHelper = new $._DziTileSourceHelper();
|
|
||||||
|
|
||||||
}( OpenSeadragon ));
|
}( OpenSeadragon ));
|
||||||
|
Loading…
Reference in New Issue
Block a user