Przeglądaj źródła

Fixed and added MoveOperation tests.

Szymon Cofalik 10 lat temu
rodzic
commit
aab8c650f0
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      packages/ckeditor5-ui/src/utils.js

+ 4 - 4
packages/ckeditor5-ui/src/utils.js

@@ -76,21 +76,21 @@ CKEDITOR.define( [ 'utils-lodash', 'lib/lodash/lodash-ckeditor' ], function( lod
 			for ( var i = 0; i < minLen; i++ ) {
 				if ( a[ i ] != b[ i ] ) {
 					// The arrays are different.
-					return this.DIFFERENT;
+					return utils.compareArrays.DIFFERENT;
 				}
 			}
 
 			// Both arrays were same at all points.
 			if ( a.length == b.length ) {
 				// If their length is also same, they are the same.
-				return this.SAME;
+				return utils.compareArrays.SAME;
 			} else if ( a.length < b.length ) {
 				// Compared array is shorter so it is a prefix of the other array.
-				return this.PREFIX;
+				return utils.compareArrays.PREFIX;
 			}
 
 			// In other case, the arrays are different.
-			return this.DIFFERENT;
+			return utils.compareArrays.DIFFERENT;
 		}
 	};