Document how to remove attributes

Change-Id: I9a30a6510d62fb2ee4e6341ef74f2f5558125e72
This commit is contained in:
Catrope 2012-06-20 18:40:24 -07:00
parent e4ada5296a
commit f2c178f020

View file

@ -150,7 +150,7 @@ ve.dm.Transaction.newFromRemoval = function( doc, range ) {
* @param {ve.dm.Document} doc Document to create transaction for
* @param {Integer} offset Offset of element
* @param {String} key Attribute name
* @param {Mixed} value New value
* @param {Mixed} value New value, or undefined to remove the attribute
* @returns {ve.dm.Transaction} Transcation that changes an element
* @throws 'Can not set attributes to non-element data'
* @throws 'Can not set attributes on closing element'
@ -554,8 +554,8 @@ ve.dm.Transaction.prototype.pushReplace = function( remove, insert ) {
*
* @method
* @param {String} key Name of attribute to change
* @param {Mixed} from Value change attribute from
* @param {Mixed} to Value to change attribute to
* @param {Mixed} from Value change attribute from, or undefined if not previously set
* @param {Mixed} to Value to change attribute to, or undefined to remove
*/
ve.dm.Transaction.prototype.pushReplaceElementAttribute = function( key, from, to ) {
this.operations.push( {