Fix tests.

This commit is contained in:
Antoine Vandecreme 2015-11-05 22:32:56 -05:00
parent f58a525f47
commit 760aaa7dca

View File

@ -2101,6 +2101,8 @@ function getTileSourceImplementation( viewer, tileSource, successCallback,
var options = $TileSource.prototype.configure.apply( _this, [ tileSource ] );
waitUntilReady(new $TileSource(options), tileSource);
}
} else if ($.isArray(tileSource)) {
successCallback(tileSource);
} else {
//can assume it's already a tile source implementation
waitUntilReady(tileSource, tileSource);