From eaa41f7f05fe4ca52a87f6dc1aba5a358228374f Mon Sep 17 00:00:00 2001 From: akansjain <100862574+akansjain@users.noreply.github.com> Date: Wed, 21 Jun 2023 13:34:58 +0530 Subject: [PATCH] Replaced the comment with Deprecated --- src/openseadragon.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index 7b306f2d..278f61c8 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -2251,20 +2251,7 @@ function OpenSeadragon( options ){ event.stopPropagation(); }, - /** - * 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} - */ + // Deprecated createCallback: function( object, method ) { //TODO: This pattern is painful to use and debug. It's much cleaner // to use pinning plus anonymous functions. Get rid of this