diff --git a/package.json b/package.json index e5e491dd..0fe07a07 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,6 @@ "test": "grunt test", "prepare": "grunt build", "build": "grunt build", - "dev": "grunt connect watch" + "dev": "grunt dev" } } diff --git a/src/datatypeconvertor.js b/src/datatypeconvertor.js index 242d2c6b..088a1d72 100644 --- a/src/datatypeconvertor.js +++ b/src/datatypeconvertor.js @@ -373,7 +373,7 @@ $.DataTypeConvertor = class { } /** - * Destroy the data item given. + * Copy the data item given. * @param {OpenSeadragon.Tile} tile * @param {any} data data item to convert * @param {string} type data type diff --git a/src/tilesource.js b/src/tilesource.js index c8985ef3..a5442e0f 100644 --- a/src/tilesource.js +++ b/src/tilesource.js @@ -436,10 +436,11 @@ $.TileSource.prototype = { * Responsible for retrieving, and caching the * image metadata pertinent to this TileSources implementation. * There are three scenarios of opening a tile source: - * 1) if it is a string parseable as XML or JSON, the string is converted to an object - * 2) if it is a string, then - * internally, this method - * else + * This method is only called by OSD if the TileSource configuration is a non-parseable string (~url). + * + * The string can contain a hash `#` symbol, followed by + * key=value arguments. If this is the case, this method sends this + * data as a POST body. * * @function * @param {String} url diff --git a/src/viewer.js b/src/viewer.js index 2b452c9e..2971f781 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -1584,7 +1584,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, * A set of headers to include when making tile AJAX requests. * Note that these headers will be merged over any headers specified in {@link OpenSeadragon.Options}. * Specifying a falsy value for a header will clear its existing value set at the Viewer level (if any). - * @param {Function} [options.success] A function tadhat gets called when the image is + * @param {Function} [options.success] A function that gets called when the image is * successfully added. It's passed the event object which contains a single property: * "item", which is the resulting instance of TiledImage. * @param {Function} [options.error] A function that gets called if the image is diff --git a/test/demo/filtering-plugin/plugin.js b/test/demo/filtering-plugin/plugin.js index 4505b282..47ea8b2b 100644 --- a/test/demo/filtering-plugin/plugin.js +++ b/test/demo/filtering-plugin/plugin.js @@ -17,12 +17,6 @@ if (!$) { throw new Error('OpenSeadragon is missing.'); } - // Requires OpenSeadragon >=2.1 - if (!$.version || $.version.major < 2 || - $.version.major === 2 && $.version.minor < 1) { - throw new Error( - 'Filtering plugin requires OpenSeadragon version >= 2.1'); - } $.Viewer.prototype.setFilterOptions = function(options) { if (!this.filterPluginInstance) { @@ -81,7 +75,6 @@ await processors[i](contextCopy); } - tile._filterIncrement = self.filterIncrement; await tile.setData(contextCopy, 'context2d'); } };