Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1180 from ckeditor/t/722
Browse files Browse the repository at this point in the history
Internal: Simplified imports of modules that are not used directly in the code. Closes #722.
  • Loading branch information
Piotr Jasiun authored Nov 9, 2017
2 parents 07a01b1 + b0214ef commit 79da6fb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
22 changes: 10 additions & 12 deletions src/model/delta/basic-deltas.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@
// which would already have all default deltas registered.

// Import default suite of deltas so a feature have to include only Batch class file.
/* eslint-disable no-unused-vars */
import d01 from './attributedelta';
import d02 from './insertdelta';
import d03 from './mergedelta';
import d04 from './movedelta';
import d05 from './removedelta';
import d06 from './renamedelta';
import d07 from './splitdelta';
import d08 from './unwrapdelta';
import d09 from './weakinsertdelta';
import d10 from './wrapdelta';
/* eslint-enable no-unused-vars */
import './attributedelta';
import './insertdelta';
import './mergedelta';
import './movedelta';
import './removedelta';
import './renamedelta';
import './splitdelta';
import './unwrapdelta';
import './weakinsertdelta';
import './wrapdelta';
8 changes: 3 additions & 5 deletions src/model/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
* @module engine/model/document
*/

// Load all basic deltas and transformations, they register themselves, but they need to be imported somewhere.
/* eslint-disable no-unused-vars */
import deltas from './delta/basic-deltas';
import transformations from './delta/basic-transformations';
/* eslint-enable no-unused-vars */
// Load all basic deltas and transformations, they register themselves.
import './delta/basic-deltas';
import './delta/basic-transformations';

import Range from './range';
import Position from './position';
Expand Down

0 comments on commit 79da6fb

Please sign in to comment.