utils-lodash.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. // Make this compatible with CommonJS as well so it can be used in Node (e.g. "grunt lodash").
  25. /* istanbul ignore next: we're not able to test the following in bender so ignore it */
  26. if ( typeof module == 'object' && module.exports ) {
  27. module.exports = lodashInclude;
  28. } else {
  29. CKEDITOR.define( function() {
  30. return lodashInclude;
  31. } );
  32. }
  33. } )();