8
0
Просмотр исходного кода

Corrected some improper references to the global Promise classs.

fredck 10 лет назад
Родитель
Сommit
17641b01ea

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

@@ -11,7 +11,12 @@
  * @class Editor
  */
 
-CKEDITOR.define( [ 'mvc/model', 'editorconfig', 'plugincollection' ], function( Model, EditorConfig, PluginCollection ) {
+CKEDITOR.define( [
+	'mvc/model',
+	'editorconfig',
+	'plugincollection',
+	'promise'
+], function( Model, EditorConfig, PluginCollection, Promise ) {
 	var Editor = Model.extend( {
 		/**
 		 * Creates a new instance of the Editor class.

+ 1 - 1
packages/ckeditor5-engine/tests/editor/editor.js

@@ -60,7 +60,7 @@ CKEDITOR.define( 'plugin!F', [ 'plugin', 'plugin!async' ], function( Plugin ) {
 
 var asyncSpy = sinon.spy().named( 'async-call-spy' );
 
-CKEDITOR.define( 'plugin!async', [ 'plugin' ], function( Plugin ) {
+CKEDITOR.define( 'plugin!async', [ 'plugin', 'promise' ], function( Plugin, Promise ) {
 	return Plugin.extend( {
 		init: sinon.spy( function() {
 			return new Promise( function( resolve ) {