Explorar o código

Fixed wrong check for function in extend().

fredck %!s(int64=11) %!d(string=hai) anos
pai
achega
c737310129
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/ckeditor5-engine/src/utils.js

+ 1 - 1
packages/ckeditor5-engine/src/utils.js

@@ -23,7 +23,7 @@ CKEDITOR.define( function() {
 		 * @returns {Object} The `target` object.
 		 * @returns {Object} The `target` object.
 		 */
 		 */
 		extend: function( target, source ) {
 		extend: function( target, source ) {
-			if ( !this.isObject( source ) && !this.isFunction( source ) ) {
+			if ( !this.isObject( source ) ) {
 				return target;
 				return target;
 			}
 			}