8
0
فهرست منبع

Clean-up of the branch.

Aleksander Nowodzinski 10 سال پیش
والد
کامیت
1a49830f2a
2فایلهای تغییر یافته به همراه1 افزوده شده و 41 حذف شده
  1. 1 6
      packages/ckeditor5-engine/src/editor.js
  2. 0 35
      packages/ckeditor5-engine/src/feature.js

+ 1 - 6
packages/ckeditor5-engine/src/editor.js

@@ -16,11 +16,10 @@ CKEDITOR.define( [
 	'model',
 	'editorconfig',
 	'plugincollection',
-	'collection',
 	'creator',
 	'ckeditorerror',
 	'utils'
-], ( Model, EditorConfig, PluginCollection, Collection, Creator, CKEditorError, utils ) => {
+], ( Model, EditorConfig, PluginCollection, Creator, CKEditorError, utils ) => {
 	class Editor extends Model {
 		/**
 		 * Creates a new instance of the Editor class.
@@ -63,10 +62,6 @@ CKEDITOR.define( [
 			 */
 			this.plugins = new PluginCollection( this );
 
-			this.features = new Collection();
-
-			this.uiItems = new Collection();
-
 			/**
 			 * The chosen creator.
 			 *

+ 0 - 35
packages/ckeditor5-engine/src/feature.js

@@ -1,35 +0,0 @@
-/**
- * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-'use strict';
-
-/**
- * Represents a single editor instance.
- *
- * @class Editor
- * @extends Model
- */
-
-CKEDITOR.define( [
-	'plugin'
-], function( Plugin ) {
-	class Feature extends Plugin {
-		constructor( editor ) {
-			super( editor );
-
-			this.set( 'state', false );
-			this.set( 'disabled', false );
-		}
-	}
-
-	return Feature;
-} );
-
-/**
- * Fired when this editor instance is destroyed. The editor at this point is not usable and this event should be used to
- * perform the clean-up in any plugin.
- *
- * @event destroy
- */