Document annotate method in surface model.

Comment cleanup

Change-Id: Ifd3eeab9046f376529a827dfafdc28506845ac15
This commit is contained in:
Rob Moen 2012-06-04 15:06:37 -07:00
parent f958297102
commit fd5eb80dd7

View file

@ -64,8 +64,13 @@ ve.dm.Surface.prototype.transact = function( transaction ) {
this.emit( 'transact', transaction ); this.emit( 'transact', transaction );
}; };
/* converted method from surface view */ /**
* Applies an annotation to the current selection
*
* @method
* @param {String} annotation action: toggle, clear, set
* @param {Object} annotation object to apply.
*/
ve.dm.Surface.prototype.annotate = function( method, annotation ) { ve.dm.Surface.prototype.annotate = function( method, annotation ) {
var selection = this.getSelection(); var selection = this.getSelection();