themis/web/js/lib/aui.js
/**
  * Returns a wrapped version of the function that logs a deprecation warning when the function is used.
  * @param {Function} fn the fn to wrap
  * @param {string} displayName the name of the fn to be displayed in the message
  * @param {string} options.removeInVersion the version this will be removed in
  * @param {string} options.alternativeName the name of an alternative to use
  * @param {string} options.sinceVersion the version this has been deprecated since
  * @param {string} options.extraInfo extra information to be printed at the end of the deprecation log
  * @return {Function} wrapping the original function
  */
Returns a wrapped version of the function that logs a deprecation warning when the function is used.
Returns a wrapped version of the function that logs a deprecation warning when the function is used .
function deprecateFunctionExpression(fn, displayName, options) {
      options = options || {};
      options.deprecationType = options.deprecationType || 'JS';
      var showDeprecationMessage = getShowDeprecationMessage(displayName || fn.name || 'this function', options);
      return function () {
          showDeprecationMessage();
          return fn.apply(this, arguments);
      };
  }
function deprecateFunctionExpression ( fn , displayName , options ) { options = options || { } ; options . deprecationType = options . deprecationType || 'JS' ; var showDeprecationMessage = getShowDeprecationMessage ( displayName || fn . name || 'this function' , options ) ; return function ( ) { showDeprecationMessage ( ) ; return fn . apply ( this , arguments ) ; } ; }
Returns a wrapped version of the function that logs a deprecation warning when the function is used.
Returns a wrapped version of the function that logs a deprecation warning when the function is used .