Explorar el Código

Changed the ckeditor plugin for bender to user bender.defer().

fredck hace 11 años
padre
commit
87f820099e
Se han modificado 1 ficheros con 5 adiciones y 7 borrados
  1. 5 7
      dev/bender/plugins/ckeditor5/static/extensions.js

+ 5 - 7
dev/bender/plugins/ckeditor5/static/extensions.js

@@ -8,11 +8,9 @@
 'use strict';
 
 ( function() {
-	// Override bender.start to wait until the "ckeditor" module is ready.
-	var originalStart = bender.start;
-	bender.start = function() {
-		CKEDITOR.require( [ 'ckeditor' ], function() {
-			originalStart.apply( this, arguments );
-		} );
-	};
+	// Make Bender wait to start running tests.
+	var done = bender.defer();
+
+	// Wait for the "ckeditor" module to be ready to start testing.
+	CKEDITOR.require( [ 'ckeditor' ], done );
 } )();