utils-lodash.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* globals module */
  6. 'use strict';
  7. // This module returns the list of Lo-Dash methods that will be exported to the main "utils" module. It is coded in a
  8. // way that it can be used by the CKEditor core code in "utils" as well as from Node.js with the configurations for
  9. // `grunt lodash`.
  10. //
  11. // https://lodash.com/docs
  12. ( function() {
  13. // The list of Lo-Dash methods to include in "utils".
  14. // It is mandatory to execute `grunt lodash` after changes to this list.
  15. var lodashInclude = [
  16. /**
  17. * See Lo-Dash: https://lodash.com/docs#assign (alias)
  18. *
  19. * @member utils
  20. * @method extend
  21. */
  22. 'extend',
  23. /**
  24. * See Lo-Dash: https://lodash.com/docs#isObject
  25. *
  26. * @member utils
  27. * @method isObject
  28. */
  29. 'isObject'
  30. ];
  31. // Make this compatible with CommonJS as well so it can be used in Node (e.g. "grunt lodash").
  32. /* istanbul ignore next: we're not able to test the following in bender so ignore it */
  33. if ( typeof module == 'object' && module.exports ) {
  34. module.exports = lodashInclude;
  35. } else {
  36. CKEDITOR.define( function() {
  37. return lodashInclude;
  38. } );
  39. }
  40. } )();