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

Changed name and order of arguments when using Batch methods.

Szymon Kupś 9 лет назад
Родитель
Сommit
9a52394f84
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/command/attributecommand.js

+ 2 - 2
src/command/attributecommand.js

@@ -132,9 +132,9 @@ export default class AttributeCommand extends Command {
 
 				for ( let range of ranges ) {
 					if ( value ) {
-						batch.setAttr( this.attributeKey, value, range );
+						batch.setAttribute( range, this.attributeKey, value );
 					} else {
-						batch.removeAttr( this.attributeKey, range );
+						batch.removeAttribute( range, this.attributeKey );
 					}
 				}
 			} );