r94843 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94842‎ | r94843 | r94844 >
Date:22:53, 17 August 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Documentation updates
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.AnnotationSerializer.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.AnnotationSerializer.js
@@ -15,10 +15,10 @@
1616 * Insertions for the same range will be nested in order of declaration.
1717 * @example
1818 * 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 ), '{', '}' );
2121 * // Outputs: "a[{b}]c"
22 - * console.log( stack.apply( 'abc' ) );
 22+ * console.log( stack.render( 'abc' ) );
2323 *
2424 * @param range {es.Range} Range to insert text around
2525 * @param pre {String} Text to insert before range

Status & tagging log