From fd5eb80dd7baf27632ce5c9e8f6cd686a4f63753 Mon Sep 17 00:00:00 2001 From: Rob Moen Date: Mon, 4 Jun 2012 15:06:37 -0700 Subject: [PATCH] Document annotate method in surface model. Comment cleanup Change-Id: Ifd3eeab9046f376529a827dfafdc28506845ac15 --- modules/ve2/dm/ve.dm.Surface.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/ve2/dm/ve.dm.Surface.js b/modules/ve2/dm/ve.dm.Surface.js index 7556963712..3328cb41e0 100644 --- a/modules/ve2/dm/ve.dm.Surface.js +++ b/modules/ve2/dm/ve.dm.Surface.js @@ -64,8 +64,13 @@ ve.dm.Surface.prototype.transact = function( 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 ) { var selection = this.getSelection();