removed _DziTileSourceHelper anti-pattern in favor of direct object literal containing helper methods

This commit is contained in:
thatcher 2011-12-13 18:24:04 -05:00
parent 9642ca18e7
commit f1882259e2
2 changed files with 2 additions and 10 deletions

View File

@ -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 ));

View File

@ -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 ));