Compare commits

..

No commits in common. "ffbd8f985a4dab4fdde855458383f50f6973eb7a" and "ebab356c207e626b6622f88ffcb0cd28b918f85d" have entirely different histories.

2 changed files with 15 additions and 4 deletions

View File

@ -4,8 +4,6 @@ OPENSEADRAGON CHANGELOG
5.0.0: (in progress...) 5.0.0: (in progress...)
* BREAKING CHANGE: Dropped support for IE11 (#2300, #2361 @AndrewADev) * BREAKING CHANGE: Dropped support for IE11 (#2300, #2361 @AndrewADev)
* DEPRECATION: The OpenSeadragon.createCallback function is no longer recommended (#2367 @akansjain)
* Fixed: Sometimes if the viewport was flipped and the user zoomed in far enough, it would flip back (#2364 @SebDelile)
4.1.0: 4.1.0:

View File

@ -2251,12 +2251,25 @@ function OpenSeadragon( options ){
event.stopPropagation(); event.stopPropagation();
}, },
// Deprecated
/**
* Similar to OpenSeadragon.delegate, but it does not immediately call
* the method on the object, returning a function which can be called
* repeatedly to delegate the method. It also allows additional arguments
* to be passed during construction which will be added during each
* invocation, and each invocation can add additional arguments as well.
*
* @function
* @param {Object} object
* @param {Function} method
* @param [args] any additional arguments are passed as arguments to the
* created callback
* @returns {Function}
*/
createCallback: function( object, method ) { createCallback: function( object, method ) {
//TODO: This pattern is painful to use and debug. It's much cleaner //TODO: This pattern is painful to use and debug. It's much cleaner
// to use pinning plus anonymous functions. Get rid of this // to use pinning plus anonymous functions. Get rid of this
// pattern! // pattern!
console.error('The createCallback function is deprecated and will be removed in future versions. Please use alternativeFunction instead.');
var initialArgs = [], var initialArgs = [],
i; i;
for ( i = 2; i < arguments.length; i++ ) { for ( i = 2; i < arguments.length; i++ ) {