8
0
فهرست منبع

Delete temp-viewconversioncontroller.js

Piotr Jasiun 9 سال پیش
والد
کامیت
847bfbf59f
1فایلهای تغییر یافته به همراه0 افزوده شده و 39 حذف شده
  1. 0 39
      packages/ckeditor5-engine/src/treecontroller/temp-viewconversioncontroller.js

+ 0 - 39
packages/ckeditor5-engine/src/treecontroller/temp-viewconversioncontroller.js

@@ -1,39 +0,0 @@
-/**
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-'use strict';
-
-import ViewElement from '../treview/element.js';
-import ViewText from '../treview/text.js';
-
-export default class ViewConversionController {
-	constructor( dispatcher, consumable ) {
-		this.consumable = consumable;
-
-		this._dispatcher = dispatcher;
-	}
-
-	convert( input, context ) {
-		const data = {
-			input: input,
-			output: null,
-			context: context
-		};
-
-		if ( input instanceof ViewElement ) {
-			this._dispatcher.fire( 'element:' + input.name, data, this );
-		} else if ( input instanceof ViewText ) {
-			this._dispatcher.fire( 'text', data, this );
-		} else { // DocumentFragment
-			this._dispatcher.fire( 'documentFragment', data, this );
-		}
-
-		return data.output;
-	}
-
-	convertChildren( input, context ) {
-		return Array.from( input.getChildren() ).map( viewChild => this.convert( viewChild, context ) );
-	}
-}