packages/ag-grid-docs/src/dist/aui/js/aui.js
/**
  * Wraps an object property in a deprecation warning, if possible. functions will always log warnings, but other
  * types of properties will only log in browsers supporting Object.defineProperty
  * @param {Object} obj the object containing the property
  * @param {string} prop the name of the property to deprecate
  * @param {string} options.removeInVersion the version this will be removed in
  * @param {string} options.displayName the display name of the property to deprecate (optional, will fall back to the property name)
  * @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
  */
Wraps an object property in a deprecation warning, if possible.
Wraps an object property in a deprecation warning if possible .
function deprecateObjectProperty(obj, prop, options) {
      if (typeof obj[prop] === 'function') {
          options = options || {};
          options.deprecationType = options.deprecationType || 'JS';
          var displayNameOrShowMessageFn = options.displayName || prop;
          obj[prop] = deprecateFunctionExpression(obj[prop], displayNameOrShowMessageFn, options);
      } else {
          deprecateValueProperty(obj, prop, options);
      }
  }
function deprecateObjectProperty ( obj , prop , options ) { if ( typeof obj [ prop ] === 'function' ) { options = options || { } ; options . deprecationType = options . deprecationType || 'JS' ; var displayNameOrShowMessageFn = options . displayName || prop ; obj [ prop ] = deprecateFunctionExpression ( obj [ prop ] , displayNameOrShowMessageFn , options ) ; } else { deprecateValueProperty ( obj , prop , options ) ; } }
Wraps an object property in a deprecation warning, if possible.
Wraps an object property in a deprecation warning if possible .