Răsfoiți Sursa

Changed name and order of arguments when using Batch methods.

Szymon Kupś 9 ani în urmă
părinte
comite
9a52394f84
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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 ) {
 				for ( let range of ranges ) {
 					if ( value ) {
 					if ( value ) {
-						batch.setAttr( this.attributeKey, value, range );
+						batch.setAttribute( range, this.attributeKey, value );
 					} else {
 					} else {
-						batch.removeAttr( this.attributeKey, range );
+						batch.removeAttribute( range, this.attributeKey );
 					}
 					}
 				}
 				}
 			} );
 			} );