Index: trunk/parsers/wikidom/lib/es/es.AnnotationSerializer.js |
— | — | @@ -15,10 +15,10 @@ |
16 | 16 | * Insertions for the same range will be nested in order of declaration. |
17 | 17 | * @example |
18 | 18 | * stack = new es.AnnotationSerializer(); |
19 | | - * stack.wrapWithText( { 'from': 1, 'to': 2 }, '[', ']' ); |
20 | | - * stack.wrapWithText( { 'from': 1, 'to': 2 }, '{', '}' ); |
| 19 | + * stack.add( new es.Range( 1, 2 ), '[', ']' ); |
| 20 | + * stack.add( new es.Range( 1, 2 ), '{', '}' ); |
21 | 21 | * // Outputs: "a[{b}]c" |
22 | | - * console.log( stack.apply( 'abc' ) ); |
| 22 | + * console.log( stack.render( 'abc' ) ); |
23 | 23 | * |
24 | 24 | * @param range {es.Range} Range to insert text around |
25 | 25 | * @param pre {String} Text to insert before range |