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

Made it in a way that "ckeditor-core" keeps its original definition so it can be tested.

fredck 11 лет назад
Родитель
Сommit
5aa7d5ae51
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      ckeditor.js

+ 2 - 3
ckeditor.js

@@ -73,10 +73,9 @@
 
 
 	// Define a new "ckeditor" module, which overrides the core one with the above and the dev stuff.
 	// Define a new "ckeditor" module, which overrides the core one with the above and the dev stuff.
 	define( 'ckeditor', [ 'ckeditor-core', 'ckeditor-dev', 'utils' ], function( core, dev, utils ) {
 	define( 'ckeditor', [ 'ckeditor-core', 'ckeditor-dev', 'utils' ], function( core, dev, utils ) {
-		utils.extend( core, root.CKEDITOR, ( dev || {} ) );
-		root.CKEDITOR = core;
+		root.CKEDITOR = utils.extend( {}, core, root.CKEDITOR, ( dev || {} ) );
 
 
-		return core;
+		return root.CKEDITOR;
 	} );
 	} );
 
 
 	function getBasePath() {
 	function getBasePath() {