r113192 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113191‎ | r113192 | r113193 >
Date:22:39, 6 March 2012
Author:inez
Status:ok
Tags:
Comment:
Update class names, from ve.es to ve.cs, and update code that uses those classes
Modified paths:
  • /trunk/extensions/VisualEditor/demos/ce/main.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.DocumentNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.HeadingNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.ListItemNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.ListNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.ParagraphNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.PreNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.TableCellNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.TableNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.TableRowNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.BranchNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.Content.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.LeafNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.Node.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.Surface.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.DocumentNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.HeadingNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.ListItemNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.ListNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.ParagraphNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.PreNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.TableCellNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.TableNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.TableRowNode.js (modified) (history)
  • /trunk/extensions/VisualEditor/modules/ve/dm/ve.dm.Node.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/demos/ce/main.js
@@ -472,7 +472,7 @@
473473 };
474474 window.documentModel = ve.dm.DocumentNode.newFromPlainObject( wikidoms['Wikipedia article'] );
475475 window.surfaceModel = new ve.dm.Surface( window.documentModel );
476 - window.surfaceView = new ve.es.Surface( $( '#es-editor' ), window.surfaceModel );
 476+ window.surfaceView = new ve.ce.Surface( $( '#es-editor' ), window.surfaceModel );
477477 window.toolbarView = new ve.ui.Toolbar( $( '#es-toolbar' ), window.surfaceView );
478478 window.contextView = new ve.ui.Context( window.surfaceView );
479479 window.surfaceModel.select( new ve.Range( 1, 1 ) );
Index: trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.PreNode.js
@@ -18,10 +18,10 @@
1919 * Creates a pre view for this model.
2020 *
2121 * @method
22 - * @returns {ve.es.PreNode}
 22+ * @returns {ve.ce.PreNode}
2323 */
2424 ve.dm.PreNode.prototype.createView = function() {
25 - return new ve.es.PreNode( this );
 25+ return new ve.ce.PreNode( this );
2626 };
2727
2828 /* Registration */
Index: trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.TableCellNode.js
@@ -18,10 +18,10 @@
1919 * Creates a table cell view for this model.
2020 *
2121 * @method
22 - * @returns {ve.es.TableCellNode}
 22+ * @returns {ve.ce.TableCellNode}
2323 */
2424 ve.dm.TableCellNode.prototype.createView = function() {
25 - return new ve.es.TableCellNode( this );
 25+ return new ve.ce.TableCellNode( this );
2626 };
2727
2828 /* Registration */
Index: trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.TableNode.js
@@ -18,10 +18,10 @@
1919 * Creates a table view for this model.
2020 *
2121 * @method
22 - * @returns {ve.es.TableNode}
 22+ * @returns {ve.ce.TableNode}
2323 */
2424 ve.dm.TableNode.prototype.createView = function() {
25 - return new ve.es.TableNode( this );
 25+ return new ve.ce.TableNode( this );
2626 };
2727
2828 /* Registration */
Index: trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.ListItemNode.js
@@ -18,10 +18,10 @@
1919 * Creates a list item view for this model.
2020 *
2121 * @method
22 - * @returns {ve.es.ListItemNode}
 22+ * @returns {ve.ce.ListItemNode}
2323 */
2424 ve.dm.ListItemNode.prototype.createView = function() {
25 - return new ve.es.ListItemNode( this );
 25+ return new ve.ce.ListItemNode( this );
2626 };
2727
2828 /* Registration */
Index: trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.ListNode.js
@@ -18,10 +18,10 @@
1919 * Creates a list view for this model.
2020 *
2121 * @method
22 - * @returns {ve.es.ListNode}
 22+ * @returns {ve.ce.ListNode}
2323 */
2424 ve.dm.ListNode.prototype.createView = function() {
25 - return new ve.es.ListNode( this );
 25+ return new ve.ce.ListNode( this );
2626 };
2727
2828 /* Registration */
Index: trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.DocumentNode.js
@@ -589,10 +589,10 @@
590590 * Creates a document view for this model.
591591 *
592592 * @method
593 - * @returns {ve.es.DocumentNode}
 593+ * @returns {ve.ce.DocumentNode}
594594 */
595595 ve.dm.DocumentNode.prototype.createView = function() {
596 - return new ve.es.DocumentNode( this );
 596+ return new ve.ce.DocumentNode( this );
597597 };
598598
599599 /**
Index: trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.HeadingNode.js
@@ -18,10 +18,10 @@
1919 * Creates a heading view for this model.
2020 *
2121 * @method
22 - * @returns {ve.es.ParagraphNode}
 22+ * @returns {ve.ce.ParagraphNode}
2323 */
2424 ve.dm.HeadingNode.prototype.createView = function() {
25 - return new ve.es.HeadingNode( this );
 25+ return new ve.ce.HeadingNode( this );
2626 };
2727
2828 /* Registration */
Index: trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.TableRowNode.js
@@ -18,10 +18,10 @@
1919 * Creates a table row view for this model.
2020 *
2121 * @method
22 - * @returns {ve.es.TableRowNode}
 22+ * @returns {ve.ce.TableRowNode}
2323 */
2424 ve.dm.TableRowNode.prototype.createView = function() {
25 - return new ve.es.TableRowNode( this );
 25+ return new ve.ce.TableRowNode( this );
2626 };
2727
2828 /* Registration */
Index: trunk/extensions/VisualEditor/modules/ve/dm/nodes/ve.dm.ParagraphNode.js
@@ -18,10 +18,10 @@
1919 * Creates a paragraph view for this model.
2020 *
2121 * @method
22 - * @returns {ve.es.ParagraphNode}
 22+ * @returns {ve.ce.ParagraphNode}
2323 */
2424 ve.dm.ParagraphNode.prototype.createView = function() {
25 - return new ve.es.ParagraphNode( this );
 25+ return new ve.ce.ParagraphNode( this );
2626 };
2727
2828 /* Registration */
Index: trunk/extensions/VisualEditor/modules/ve/dm/ve.dm.Node.js
@@ -28,7 +28,7 @@
2929 *
3030 * @abstract
3131 * @method
32 - * @returns {ve.es.Node} New item view associated with this model
 32+ * @returns {ve.ce.Node} New item view associated with this model
3333 */
3434 ve.dm.Node.prototype.createView = function() {
3535 throw 'DocumentModelNode.createView not implemented in this subclass:' + this.constructor;
Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.Node.js
@@ -1,5 +1,5 @@
22 /**
3 - * Creates an ve.es.Node object.
 3+ * Creates an ve.ce.Node object.
44 *
55 * @class
66 * @abstract
@@ -8,7 +8,7 @@
99 * @param {ve.dm.Node} model Model to observe
1010 * @param {jQuery} [$element=$( '<div></div>' )] Element to use as a container
1111 */
12 -ve.es.Node = function( model, $element ) {
 12+ve.ce.Node = function( model, $element ) {
1313 // Inheritance
1414 ve.Node.call( this );
1515
@@ -27,7 +27,7 @@
2828 * @see {ve.Node.prototype.getElementLength}
2929 * @returns {Integer} Length of content
3030 */
31 -ve.es.Node.prototype.getElementLength = function() {
 31+ve.ce.Node.prototype.getElementLength = function() {
3232 return this.model.getElementLength();
3333 };
3434
@@ -38,7 +38,7 @@
3939 * @see {ve.Node.prototype.getContentLength}
4040 * @returns {Integer} Length of content
4141 */
42 -ve.es.Node.prototype.getContentLength = function() {
 42+ve.ce.Node.prototype.getContentLength = function() {
4343 return this.model.getContentLength();
4444 };
4545
@@ -46,10 +46,10 @@
4747 * Attaches node as a child to another node.
4848 *
4949 * @method
50 - * @param {ve.es.Node} parent Node to attach to
 50+ * @param {ve.ce.Node} parent Node to attach to
5151 * @emits attach (parent)
5252 */
53 -ve.es.Node.prototype.attach = function( parent ) {
 53+ve.ce.Node.prototype.attach = function( parent ) {
5454 this.parent = parent;
5555 this.emit( 'attach', parent );
5656 };
@@ -60,7 +60,7 @@
6161 * @method
6262 * @emits detach (parent)
6363 */
64 -ve.es.Node.prototype.detach = function() {
 64+ve.ce.Node.prototype.detach = function() {
6565 var parent = this.parent;
6666 this.parent = null;
6767 this.emit( 'detach', parent );
@@ -70,9 +70,9 @@
7171 * Gets a reference to this node's parent.
7272 *
7373 * @method
74 - * @returns {ve.es.Node} Reference to this node's parent
 74+ * @returns {ve.ce.Node} Reference to this node's parent
7575 */
76 -ve.es.Node.prototype.getParent = function() {
 76+ve.ce.Node.prototype.getParent = function() {
7777 return this.parent;
7878 };
7979
@@ -82,26 +82,26 @@
8383 * @method
8484 * @returns {ve.dm.Node} Reference to the model this node observes
8585 */
86 -ve.es.Node.prototype.getModel = function() {
 86+ve.ce.Node.prototype.getModel = function() {
8787 return this.model;
8888 };
8989
90 -ve.es.Node.getSplitableNode = function( node ) {
 90+ve.ce.Node.getSplitableNode = function( node ) {
9191 var splitableNode = null;
9292
9393 ve.Node.traverseUpstream( node, function( node ) {
9494 var elementType = node.model.getElementType();
9595 if (
9696 splitableNode !== null &&
97 - ve.es.DocumentNode.splitRules[ elementType ].children === true
 97+ ve.ce.DocumentNode.splitRules[ elementType ].children === true
9898 ) {
9999 return false;
100100 }
101 - splitableNode = ve.es.DocumentNode.splitRules[ elementType ].self ? node : null;
 101+ splitableNode = ve.ce.DocumentNode.splitRules[ elementType ].self ? node : null;
102102 } );
103103 return splitableNode;
104104 };
105105
106106 /* Inheritance */
107107
108 -ve.extendClass( ve.es.Node, ve.Node );
 108+ve.extendClass( ve.ce.Node, ve.Node );
Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.Surface.js
@@ -1,12 +1,12 @@
22 /**
3 - * Creates an ve.es.Surface object.
 3+ * Creates an ve.ce.Surface object.
44 *
55 * @class
66 * @constructor
77 * @param {jQuery} $container DOM Container to render surface into
88 * @param {ve.dm.Surface} model Surface model to view
99 */
10 -ve.es.Surface = function( $container, model ) {
 10+ve.ce.Surface = function( $container, model ) {
1111 // Inheritance
1212 ve.EventEmitter.call( this );
1313
@@ -17,7 +17,7 @@
1818
1919 // Properties
2020 this.model = model;
21 - this.documentView = new ve.es.DocumentNode( this.model.getDocument(), this );
 21+ this.documentView = new ve.ce.DocumentNode( this.model.getDocument(), this );
2222 this.contextView = null;
2323 this.$ = $container
2424 .addClass( 'es-surfaceView' )
@@ -81,7 +81,7 @@
8282
8383 /* Methods */
8484
85 -ve.es.Surface.prototype.annotate = function( method, annotation ) {
 85+ve.ce.Surface.prototype.annotate = function( method, annotation ) {
8686 var range = this.getSelection();
8787 if ( method === 'toggle' ) {
8888 var annotations = this.getAnnotations();
@@ -107,11 +107,11 @@
108108 }
109109 };
110110
111 -ve.es.Surface.prototype.renderDomNode = function ( node ) {
 111+ve.ce.Surface.prototype.renderDomNode = function ( node ) {
112112 this.getLeafNode( node ).data( 'view' ).renderContent();
113113 };
114114
115 -ve.es.Surface.prototype.onCutCopy = function( e ) {
 115+ve.ce.Surface.prototype.onCutCopy = function( e ) {
116116 var _this = this,
117117 rangySel = rangy.getSelection(),
118118 key = rangySel.getRangeAt(0).toString().replace(/\s/gm,"");
@@ -142,7 +142,7 @@
143143 }
144144 };
145145
146 -ve.es.Surface.prototype.onPaste = function( e ) {
 146+ve.ce.Surface.prototype.onPaste = function( e ) {
147147 var _this = this,
148148 insertionPoint = _this.getSelection().start,
149149 node = rangy.getSelection().anchorNode;
@@ -171,35 +171,35 @@
172172 }, 1 );
173173 };
174174
175 -ve.es.Surface.prototype.onCompositionStart = function( e ) {
 175+ve.ce.Surface.prototype.onCompositionStart = function( e ) {
176176 this.stopPolling();
177177 var rangySel = rangy.getSelection();
178178 this.poll.compositionStart = this.getOffset( rangySel.anchorNode, rangySel.anchorOffset, false );
179179 };
180180
181 -ve.es.Surface.prototype.onCompositionEnd = function( e ) {
 181+ve.ce.Surface.prototype.onCompositionEnd = function( e ) {
182182 var rangySel = rangy.getSelection();
183183 this.poll.compositionEnd = this.getOffset( rangySel.focusNode, rangySel.focusOffset, false );
184184 this.startPolling();
185185 };
186186
187 -ve.es.Surface.prototype.attachContextView = function( contextView ) {
 187+ve.ce.Surface.prototype.attachContextView = function( contextView ) {
188188 this.contextView = contextView;
189189 };
190190
191 -ve.es.Surface.prototype.getModel = function() {
 191+ve.ce.Surface.prototype.getModel = function() {
192192 return this.model;
193193 };
194194
195 -ve.es.Surface.prototype.documentOnFocus = function() {
 195+ve.ce.Surface.prototype.documentOnFocus = function() {
196196 this.startPolling();
197197 };
198198
199 -ve.es.Surface.prototype.documentOnBlur = function() {
 199+ve.ce.Surface.prototype.documentOnBlur = function() {
200200 this.stopPolling();
201201 };
202202
203 -ve.es.Surface.prototype.startPolling = function() {
 203+ve.ce.Surface.prototype.startPolling = function() {
204204 if ( this.poll.interval === null ) {
205205 var _this = this;
206206 setTimeout( function() {
@@ -211,20 +211,20 @@
212212 }
213213 };
214214
215 -ve.es.Surface.prototype.stopPolling = function() {
 215+ve.ce.Surface.prototype.stopPolling = function() {
216216 if ( this.poll.interval !== null ) {
217217 clearInterval( this.poll.interval );
218218 this.poll.interval = null;
219219 }
220220 };
221221
222 -ve.es.Surface.prototype.pollContent = function() {
 222+ve.ce.Surface.prototype.pollContent = function() {
223223 var localOffset, text, hash;
224224
225225 if ( this.poll.compositionStart !== null && this.poll.compositionEnd !== null ) {
226226
227 - text = ve.es.Surface.getDOMText2( this.poll.node );
228 - hash = ve.es.Surface.getDOMHash( this.poll.node );
 227+ text = ve.ce.Surface.getDOMText2( this.poll.node );
 228+ hash = ve.ce.Surface.getDOMHash( this.poll.node );
229229 localOffset = this.poll.compositionEnd;
230230 this.poll.compositionStart = null;
231231 this.poll.compositionEnd = null;
@@ -237,8 +237,8 @@
238238 }
239239
240240 var node = this.getLeafNode( rangySel.anchorNode )[0];
241 - text = ve.es.Surface.getDOMText2( node );
242 - hash = ve.es.Surface.getDOMHash( node );
 241+ text = ve.ce.Surface.getDOMText2( node );
 242+ hash = ve.ce.Surface.getDOMHash( node );
243243
244244 if ( rangySel.anchorNode !== rangySel.focusNode || rangySel.anchorOffset !== rangySel.focusOffset ) {
245245 localOffset = null;
@@ -305,7 +305,7 @@
306306 this.poll.prevOffset = localOffset;
307307 };
308308
309 -ve.es.Surface.prototype.onMouseDown = function( e ) {
 309+ve.ce.Surface.prototype.onMouseDown = function( e ) {
310310 if ( this.poll.interval !== null ) {
311311 this.stopPolling();
312312 this.pollContent();
@@ -313,7 +313,7 @@
314314 }
315315 };
316316
317 -ve.es.Surface.prototype.onKeyDown = function( e ) {
 317+ve.ce.Surface.prototype.onKeyDown = function( e ) {
318318 if ( this.poll.interval !== null ) {
319319 this.stopPolling();
320320 this.pollContent();
@@ -370,7 +370,7 @@
371371 }
372372 };
373373
374 -ve.es.Surface.prototype.getOffset = function( elem, offset, global ) {
 374+ve.ce.Surface.prototype.getOffset = function( elem, offset, global ) {
375375 var $leafNode = this.getLeafNode( elem ),
376376 current = [$leafNode.contents(), 0],
377377 stack = [current],
@@ -416,7 +416,7 @@
417417 }
418418 };
419419
420 -ve.es.Surface.prototype.showCursorAt = function( offset ) {
 420+ve.ce.Surface.prototype.showCursorAt = function( offset ) {
421421 var $node = this.documentView.getNodeFromOffset( offset ).$,
422422 current = [$node.contents(), 0],
423423 stack = [current],
@@ -462,7 +462,7 @@
463463 sel.addRange( range );
464464 };
465465
466 -ve.es.Surface.prototype.getSelection = function() {
 466+ve.ce.Surface.prototype.getSelection = function() {
467467 var rangySel = rangy.getSelection(),
468468 range;
469469
@@ -479,7 +479,7 @@
480480 return range;
481481 };
482482
483 -ve.es.Surface.prototype.getLeafNode = function( elem ) {
 483+ve.ce.Surface.prototype.getLeafNode = function( elem ) {
484484 var $node = $( elem );
485485 while( !$node.hasClass( 'ce-leafNode' ) ) {
486486 $node = $node.parent();
@@ -487,13 +487,13 @@
488488 return $node;
489489 };
490490
491 -ve.es.Surface.getDOMText2 = function( elem ) {
 491+ve.ce.Surface.getDOMText2 = function( elem ) {
492492 // TODO: there must be some better way to write this regex replace
493493 var regex = new RegExp("[" + String.fromCharCode(32) + String.fromCharCode(160) + "]", "g");
494 - return ve.es.Surface.getDOMText( elem ).replace( regex, " " );
 494+ return ve.ce.Surface.getDOMText( elem ).replace( regex, " " );
495495 };
496496
497 -ve.es.Surface.getDOMText = function( elem ) {
 497+ve.ce.Surface.getDOMText = function( elem ) {
498498 var nodeType = elem.nodeType,
499499 ret = '';
500500
@@ -507,7 +507,7 @@
508508 } else {
509509 // Traverse it's children
510510 for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
511 - ret += ve.es.Surface.getDOMText( elem );
 511+ ret += ve.ce.Surface.getDOMText( elem );
512512 }
513513 }
514514 } else if ( nodeType === 3 || nodeType === 4 ) {
@@ -517,7 +517,7 @@
518518 return ret;
519519 };
520520
521 -ve.es.Surface.getDOMHash = function( elem ) {
 521+ve.ce.Surface.getDOMHash = function( elem ) {
522522 var nodeType = elem.nodeType,
523523 nodeName = elem.nodeName,
524524 ret = '';
@@ -528,14 +528,14 @@
529529 ret += '<' + nodeName + '>';
530530 // Traverse it's children
531531 for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
532 - ret += ve.es.Surface.getDOMHash( elem );
 532+ ret += ve.ce.Surface.getDOMHash( elem );
533533 }
534534 ret += '</' + nodeName + '>';
535535 }
536536 return ret;
537537 };
538538
539 -ve.es.Surface.prototype.handleDelete = function( backspace, isPartial ) {
 539+ve.ce.Surface.prototype.handleDelete = function( backspace, isPartial ) {
540540 this.stopPolling();
541541 var selection = this.getSelection().clone(),
542542 sourceOffset,
@@ -564,8 +564,8 @@
565565 targetNode = this.documentView.getNodeFromOffset( targetOffset, false );
566566
567567 if ( sourceNode.model.getElementType() === targetNode.model.getElementType() ) {
568 - sourceSplitableNode = ve.es.Node.getSplitableNode( sourceNode );
569 - targetSplitableNode = ve.es.Node.getSplitableNode( targetNode );
 568+ sourceSplitableNode = ve.ce.Node.getSplitableNode( sourceNode );
 569+ targetSplitableNode = ve.ce.Node.getSplitableNode( targetNode );
570570 }
571571
572572 cursorAt = targetOffset;
@@ -614,7 +614,7 @@
615615
616616 };
617617
618 -ve.es.Surface.prototype.handleEnter = function() {
 618+ve.ce.Surface.prototype.handleEnter = function() {
619619 this.stopPolling();
620620 var selection = this.getSelection().clone(),
621621 tx;
@@ -626,7 +626,7 @@
627627
628628 if (
629629 nodeOffset + node.getContentLength() + 1 === selection.to &&
630 - node === ve.es.Node.getSplitableNode( node )
 630+ node === ve.ce.Node.getSplitableNode( node )
631631 ) {
632632 tx = this.documentView.model.prepareInsertion(
633633 nodeOffset + node.getElementLength(),
@@ -642,7 +642,7 @@
643643 var elementType = node.model.getElementType();
644644 if (
645645 splitable === true &&
646 - ve.es.DocumentNode.splitRules[ elementType ].children === true
 646+ ve.ce.DocumentNode.splitRules[ elementType ].children === true
647647 ) {
648648 return false;
649649 }
@@ -655,7 +655,7 @@
656656 'attributes': ve.copyObject( node.model.element.attributes )
657657 }
658658 );
659 - splitable = ve.es.DocumentNode.splitRules[ elementType ].self;
 659+ splitable = ve.ce.DocumentNode.splitRules[ elementType ].self;
660660 return true;
661661 } );
662662 tx = this.documentView.model.prepareInsertion( selection.to, stack );
@@ -674,4 +674,4 @@
675675
676676 /* Inheritance */
677677
678 -ve.extendClass( ve.es.Surface, ve.EventEmitter );
\ No newline at end of file
 678+ve.extendClass( ve.ce.Surface, ve.EventEmitter );
\ No newline at end of file
Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.Content.js
@@ -1,4 +1,4 @@
2 -ve.es.Content = function( $container, model ) {
 2+ve.ce.Content = function( $container, model ) {
33 // Inheritance
44 ve.EventEmitter.call( this );
55
@@ -26,7 +26,7 @@
2727 * @static
2828 * @member
2929 */
30 -ve.es.Content.annotationRenderers = {
 30+ve.ce.Content.annotationRenderers = {
3131 'object/template': {
3232 'open': function( data ) {
3333 return '<span class="es-contentView-format-object">' + data.html;
@@ -91,7 +91,7 @@
9292 * @static
9393 * @member
9494 */
95 -ve.es.Content.htmlCharacters = {
 95+ve.ce.Content.htmlCharacters = {
9696 '&': '&amp;',
9797 '<': '&lt;',
9898 '>': '&gt;',
@@ -117,8 +117,8 @@
118118 * @param {Array} stack List of currently open annotations
119119 * @returns {String} Rendered annotation
120120 */
121 -ve.es.Content.renderAnnotation = function( bias, annotation, stack ) {
122 - var renderers = ve.es.Content.annotationRenderers,
 121+ve.ce.Content.renderAnnotation = function( bias, annotation, stack ) {
 122+ var renderers = ve.ce.Content.annotationRenderers,
123123 type = annotation.type,
124124 out = '';
125125 if ( type in renderers ) {
@@ -167,7 +167,7 @@
168168
169169 /* Methods */
170170
171 -ve.es.Content.prototype.render = function( offset ) {
 171+ve.ce.Content.prototype.render = function( offset ) {
172172 this.$.html( this.getHtml( 0, this.model.getContentLength() ) );
173173 };
174174
@@ -178,15 +178,15 @@
179179 * @param {ve.Range} range Range of content to render
180180 * @param {String} Rendered HTML of data within content model
181181 */
182 -ve.es.Content.prototype.getHtml = function( range, options ) {
 182+ve.ce.Content.prototype.getHtml = function( range, options ) {
183183 if ( range ) {
184184 range.normalize();
185185 } else {
186186 range = { 'start': 0, 'end': undefined };
187187 }
188188 var data = this.model.getContentData(),
189 - render = ve.es.Content.renderAnnotation,
190 - htmlChars = ve.es.Content.htmlCharacters;
 189+ render = ve.ce.Content.renderAnnotation,
 190+ htmlChars = ve.ce.Content.htmlCharacters;
191191 var out = '',
192192 left = '',
193193 right,
@@ -238,4 +238,4 @@
239239
240240 /* Inheritance */
241241
242 -ve.extendClass( ve.es.Content, ve.EventEmitter );
\ No newline at end of file
 242+ve.extendClass( ve.ce.Content, ve.EventEmitter );
\ No newline at end of file
Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.LeafNode.js
@@ -1,24 +1,24 @@
22 /**
3 - * Creates an ve.es.LeafNode object.
 3+ * Creates an ve.ce.LeafNode object.
44 *
55 * @class
66 * @abstract
77 * @constructor
88 * @extends {ve.LeafNode}
9 - * @extends {ve.es.Node}
 9+ * @extends {ve.ce.Node}
1010 * @param model {ve.ModelNode} Model to observe
1111 * @param {jQuery} [$element] Element to use as a container
1212 */
13 -ve.es.LeafNode = function( model, $element ) {
 13+ve.ce.LeafNode = function( model, $element ) {
1414 // Inheritance
1515 ve.LeafNode.call( this );
16 - ve.es.Node.call( this, model, $element );
 16+ ve.ce.Node.call( this, model, $element );
1717
1818 this.$.data('view', this);
1919 this.$.addClass('ce-leafNode');
2020
2121 // Properties
22 - this.contentView = new ve.es.Content( this.$, model );
 22+ this.contentView = new ve.ce.Content( this.$, model );
2323
2424 // Events
2525 this.contentView.on( 'update', this.emitUpdate );
@@ -31,15 +31,15 @@
3232 *
3333 * @method
3434 */
35 -ve.es.LeafNode.prototype.renderContent = function() {
 35+ve.ce.LeafNode.prototype.renderContent = function() {
3636 this.contentView.render();
3737 };
3838
39 -ve.es.LeafNode.prototype.getDOMText = function() {
 39+ve.ce.LeafNode.prototype.getDOMText = function() {
4040 return ve.ce.getDOMText( this.$[0] );
4141 };
4242
4343 /* Inheritance */
4444
45 -ve.extendClass( ve.es.LeafNode, ve.LeafNode );
46 -ve.extendClass( ve.es.LeafNode, ve.es.Node );
 45+ve.extendClass( ve.ce.LeafNode, ve.LeafNode );
 46+ve.extendClass( ve.ce.LeafNode, ve.ce.Node );
Index: trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.HeadingNode.js
@@ -1,14 +1,14 @@
22 /**
3 - * Creates an ve.es.HeadingNode object.
 3+ * Creates an ve.ce.HeadingNode object.
44 *
55 * @class
66 * @constructor
7 - * @extends {ve.es.LeafNode}
 7+ * @extends {ve.ce.LeafNode}
88 * @param {ve.dm.HeadingNode} model Heading model to view
99 */
10 -ve.es.HeadingNode = function( model ) {
 10+ve.ce.HeadingNode = function( model ) {
1111 // Inheritance
12 - ve.es.LeafNode.call( this, model );
 12+ ve.ce.LeafNode.call( this, model );
1313
1414 // Properties
1515 this.currentLevelHash = null;
@@ -28,7 +28,7 @@
2929
3030 /* Methods */
3131
32 -ve.es.HeadingNode.prototype.setClasses = function() {
 32+ve.ce.HeadingNode.prototype.setClasses = function() {
3333 var level = this.model.getElementAttribute( 'level' );
3434 if ( level !== this.currentLevelHash ) {
3535 this.currentLevelHash = level;
@@ -43,11 +43,11 @@
4444
4545 /* Registration */
4646
47 -ve.es.DocumentNode.splitRules.heading = {
 47+ve.ce.DocumentNode.splitRules.heading = {
4848 'self': true,
4949 'children': null
5050 };
5151
5252 /* Inheritance */
5353
54 -ve.extendClass( ve.es.HeadingNode, ve.es.LeafNode );
 54+ve.extendClass( ve.ce.HeadingNode, ve.ce.LeafNode );
Index: trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.TableRowNode.js
@@ -1,14 +1,14 @@
22 /**
3 - * Creates an ve.es.TableRowNode object.
 3+ * Creates an ve.ce.TableRowNode object.
44 *
55 * @class
66 * @constructor
7 - * @extends {ve.es.BranchNode}
 7+ * @extends {ve.ce.BranchNode}
88 * @param {ve.dm.TableRowNode} model Table row model to view
99 */
10 -ve.es.TableRowNode = function( model ) {
 10+ve.ce.TableRowNode = function( model ) {
1111 // Inheritance
12 - ve.es.BranchNode.call( this, model, $( '<tr>' ), true );
 12+ ve.ce.BranchNode.call( this, model, $( '<tr>' ), true );
1313
1414 // DOM Changes
1515 this.$
@@ -18,11 +18,11 @@
1919
2020 /* Registration */
2121
22 -ve.es.DocumentNode.splitRules.tableRow = {
 22+ve.ce.DocumentNode.splitRules.tableRow = {
2323 'self': false,
2424 'children': false
2525 };
2626
2727 /* Inheritance */
2828
29 -ve.extendClass( ve.es.TableRowNode, ve.es.BranchNode );
 29+ve.extendClass( ve.ce.TableRowNode, ve.ce.BranchNode );
Index: trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.ParagraphNode.js
@@ -1,14 +1,14 @@
22 /**
3 - * Creates an ve.es.ParagraphNode object.
 3+ * Creates an ve.ce.ParagraphNode object.
44 *
55 * @class
66 * @constructor
7 - * @extends {ve.es.LeafNode}
 7+ * @extends {ve.ce.LeafNode}
88 * @param {ve.dm.ParagraphNode} model Paragraph model to view
99 */
10 -ve.es.ParagraphNode = function( model ) {
 10+ve.ce.ParagraphNode = function( model ) {
1111 // Inheritance
12 - ve.es.LeafNode.call( this, model, $( '<p></p>' ) );
 12+ ve.ce.LeafNode.call( this, model, $( '<p></p>' ) );
1313
1414 // DOM Changes
1515 this.$.addClass( 'es-paragraphView' );
@@ -16,11 +16,11 @@
1717
1818 /* Registration */
1919
20 -ve.es.DocumentNode.splitRules.paragraph = {
 20+ve.ce.DocumentNode.splitRules.paragraph = {
2121 'self': true,
2222 'children': null
2323 };
2424
2525 /* Inheritance */
2626
27 -ve.extendClass( ve.es.ParagraphNode, ve.es.LeafNode );
 27+ve.extendClass( ve.ce.ParagraphNode, ve.ce.LeafNode );
Index: trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.PreNode.js
@@ -1,14 +1,14 @@
22 /**
3 - * Creates an ve.es.PreNode object.
 3+ * Creates an ve.ce.PreNode object.
44 *
55 * @class
66 * @constructor
7 - * @extends {ve.es.LeafNode}
 7+ * @extends {ve.ce.LeafNode}
88 * @param {ve.dm.PreNode} model Pre model to view
99 */
10 -ve.es.PreNode = function( model ) {
 10+ve.ce.PreNode = function( model ) {
1111 // Inheritance
12 - ve.es.LeafNode.call( this, model, undefined, { 'pre': true } );
 12+ ve.ce.LeafNode.call( this, model, undefined, { 'pre': true } );
1313
1414 // DOM Changes
1515 this.$.addClass( 'es-preView' );
@@ -16,11 +16,11 @@
1717
1818 /* Registration */
1919
20 -ve.es.DocumentNode.splitRules.pre = {
 20+ve.ce.DocumentNode.splitRules.pre = {
2121 'self': true,
2222 'children': null
2323 };
2424
2525 /* Inheritance */
2626
27 -ve.extendClass( ve.es.PreNode, ve.es.LeafNode );
 27+ve.extendClass( ve.ce.PreNode, ve.ce.LeafNode );
Index: trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.TableCellNode.js
@@ -1,14 +1,14 @@
22 /**
3 - * Creates an ve.es.TableCellNode object.
 3+ * Creates an ve.ce.TableCellNode object.
44 *
55 * @class
66 * @constructor
7 - * @extends {ve.es.BranchNode}
 7+ * @extends {ve.ce.BranchNode}
88 * @param {ve.dm.TableCellNode} model Table cell model to view
99 */
10 -ve.es.TableCellNode = function( model ) {
 10+ve.ce.TableCellNode = function( model ) {
1111 // Inheritance
12 - ve.es.BranchNode.call( this, model, $( '<td>' ) );
 12+ ve.ce.BranchNode.call( this, model, $( '<td>' ) );
1313
1414 // DOM Changes
1515 this.$
@@ -18,11 +18,11 @@
1919
2020 /* Registration */
2121
22 -ve.es.DocumentNode.splitRules.tableCell = {
 22+ve.ce.DocumentNode.splitRules.tableCell = {
2323 'self': false,
2424 'children': true
2525 };
2626
2727 /* Inheritance */
2828
29 -ve.extendClass( ve.es.TableCellNode, ve.es.BranchNode );
 29+ve.extendClass( ve.ce.TableCellNode, ve.ce.BranchNode );
Index: trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.TableNode.js
@@ -1,14 +1,14 @@
22 /**
3 - * Creates an ve.es.TableNode object.
 3+ * Creates an ve.ce.TableNode object.
44 *
55 * @class
66 * @constructor
7 - * @extends {ve.es.BranchNode}
 7+ * @extends {ve.ce.BranchNode}
88 * @param {ve.dm.TableNode} model Table model to view
99 */
10 -ve.es.TableNode = function( model ) {
 10+ve.ce.TableNode = function( model ) {
1111 // Inheritance
12 - ve.es.BranchNode.call( this, model, $( '<table>' ) );
 12+ ve.ce.BranchNode.call( this, model, $( '<table>' ) );
1313
1414 // DOM Changes
1515 this.$
@@ -18,11 +18,11 @@
1919
2020 /* Registration */
2121
22 -ve.es.DocumentNode.splitRules.table = {
 22+ve.ce.DocumentNode.splitRules.table = {
2323 'self': false,
2424 'children': false
2525 };
2626
2727 /* Inheritance */
2828
29 -ve.extendClass( ve.es.TableNode, ve.es.BranchNode );
 29+ve.extendClass( ve.ce.TableNode, ve.ce.BranchNode );
Index: trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.ListItemNode.js
@@ -1,14 +1,14 @@
22 /**
3 - * Creates an ve.es.ListItemNode object.
 3+ * Creates an ve.ce.ListItemNode object.
44 *
55 * @class
66 * @constructor
7 - * @extends {ve.es.LeafNode}
 7+ * @extends {ve.ce.LeafNode}
88 * @param {ve.dm.ListItemNode} model List item model to view
99 */
10 -ve.es.ListItemNode = function( model ) {
 10+ve.ce.ListItemNode = function( model ) {
1111 // Inheritance
12 - ve.es.BranchNode.call( this, model );
 12+ ve.ce.BranchNode.call( this, model );
1313
1414 // Properties
1515 this.$icon = $( '<div class="es-listItemView-icon"></div>' ).prependTo( this.$ );
@@ -29,7 +29,7 @@
3030
3131 /* Methods */
3232
33 -ve.es.ListItemNode.prototype.setClasses = function() {
 33+ve.ce.ListItemNode.prototype.setClasses = function() {
3434 var styles = this.model.getElementAttribute( 'styles' ),
3535 stylesHash = styles.join( '|' );
3636 if ( this.currentStylesHash !== stylesHash ) {
@@ -52,11 +52,11 @@
5353
5454 /* Registration */
5555
56 -ve.es.DocumentNode.splitRules.listItem = {
 56+ve.ce.DocumentNode.splitRules.listItem = {
5757 'self': true,
5858 'children': false
5959 };
6060
6161 /* Inheritance */
6262
63 -ve.extendClass( ve.es.ListItemNode, ve.es.BranchNode );
 63+ve.extendClass( ve.ce.ListItemNode, ve.ce.BranchNode );
Index: trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.ListNode.js
@@ -1,14 +1,14 @@
22 /**
3 - * Creates an ve.es.ListNode object.
 3+ * Creates an ve.ce.ListNode object.
44 *
55 * @class
66 * @constructor
7 - * @extends {ve.es.BranchNode}
 7+ * @extends {ve.ce.BranchNode}
88 * @param {ve.dm.ListNode} model List model to view
99 */
10 -ve.es.ListNode = function( model ) {
 10+ve.ce.ListNode = function( model ) {
1111 // Inheritance
12 - ve.es.BranchNode.call( this, model );
 12+ ve.ce.BranchNode.call( this, model );
1313
1414 // DOM Changes
1515 this.$.addClass( 'es-listView' );
@@ -30,7 +30,7 @@
3131 *
3232 * @method
3333 */
34 -ve.es.ListNode.prototype.enumerate = function() {
 34+ve.ce.ListNode.prototype.enumerate = function() {
3535 var styles,
3636 levels = [];
3737 for ( var i = 0; i < this.children.length; i++ ) {
@@ -52,11 +52,11 @@
5353
5454 /* Registration */
5555
56 -ve.es.DocumentNode.splitRules.list = {
 56+ve.ce.DocumentNode.splitRules.list = {
5757 'self': false,
5858 'children': true
5959 };
6060
6161 /* Inheritance */
6262
63 -ve.extendClass( ve.es.ListNode, ve.es.BranchNode );
 63+ve.extendClass( ve.ce.ListNode, ve.ce.BranchNode );
Index: trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.DocumentNode.js
@@ -1,15 +1,15 @@
22 /**
3 - * Creates an ve.es.DocumentNode object.
 3+ * Creates an ve.ce.DocumentNode object.
44 *
55 * @class
66 * @constructor
7 - * @extends {ve.es.BranchNode}
 7+ * @extends {ve.ce.BranchNode}
88 * @param {ve.dm.DocumentNode} documentModel Document model to view
9 - * @param {ve.es.Surface} surfaceView Surface view this view is a child of
 9+ * @param {ve.ce.Surface} surfaceView Surface view this view is a child of
1010 */
11 -ve.es.DocumentNode = function( model, surfaceView ) {
 11+ve.ce.DocumentNode = function( model, surfaceView ) {
1212 // Inheritance
13 - ve.es.BranchNode.call( this, model );
 13+ ve.ce.BranchNode.call( this, model );
1414
1515 // Properties
1616 this.surfaceView = surfaceView;
@@ -47,7 +47,7 @@
4848 * 'children': false
4949 * }
5050 */
51 -ve.es.DocumentNode.splitRules = {};
 51+ve.ce.DocumentNode.splitRules = {};
5252
5353 /* Methods */
5454
@@ -58,16 +58,16 @@
5959 * @param e {Event} Event to create ve.Position from
6060 * @returns {Integer} Document offset
6161 */
62 -ve.es.DocumentNode.prototype.getOffsetFromEvent = function( e ) {
 62+ve.ce.DocumentNode.prototype.getOffsetFromEvent = function( e ) {
6363 var position = ve.Position.newFromEventPagePosition( e );
6464 return this.getOffsetFromRenderedPosition( position );
6565 };
6666
67 -ve.es.DocumentNode.splitRules.document = {
 67+ve.ce.DocumentNode.splitRules.document = {
6868 'self': false,
6969 'children': true
7070 };
7171
7272 /* Inheritance */
7373
74 -ve.extendClass( ve.es.DocumentNode, ve.es.BranchNode );
 74+ve.extendClass( ve.ce.DocumentNode, ve.ce.BranchNode );
Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.js
@@ -3,11 +3,11 @@
44 *
55 * All classes and functions will be attached to this object to keep the global namespace clean.
66 */
7 -ve.es = {
 7+ve.ce = {
88
99 };
1010
11 -ve.es.getDOMText = function( elem ) {
 11+ve.ce.getDOMText = function( elem ) {
1212 var nodeType = elem.nodeType,
1313 ret = '';
1414
@@ -21,7 +21,7 @@
2222 } else {
2323 // Traverse it's children
2424 for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
25 - ret += ve.es.getDOMText( elem );
 25+ ret += ve.ce.getDOMText( elem );
2626 }
2727 }
2828 } else if ( nodeType === 3 || nodeType === 4 ) {
Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.BranchNode.js
@@ -1,18 +1,18 @@
22 /**
3 - * Creates an ve.es.BranchNode object.
 3+ * Creates an ve.ce.BranchNode object.
44 *
55 * @class
66 * @abstract
77 * @constructor
88 * @extends {ve.BranchNode}
9 - * @extends {ve.es.Node}
 9+ * @extends {ve.ce.Node}
1010 * @param model {ve.ModelNode} Model to observe
1111 * @param {jQuery} [$element] Element to use as a container
1212 */
13 -ve.es.BranchNode = function( model, $element, horizontal ) {
 13+ve.ce.BranchNode = function( model, $element, horizontal ) {
1414 // Inheritance
1515 ve.BranchNode.call( this );
16 - ve.es.Node.call( this, model, $element );
 16+ ve.ce.Node.call( this, model, $element );
1717
1818 // Properties
1919 this.horizontal = horizontal || false;
@@ -39,7 +39,7 @@
4040
4141 /* Methods */
4242
43 -ve.es.BranchNode.prototype.onAfterPush = function( childModel ) {
 43+ve.ce.BranchNode.prototype.onAfterPush = function( childModel ) {
4444 var childView = childModel.createView();
4545 this.emit( 'beforePush', childView );
4646 childView.attach( this );
@@ -57,7 +57,7 @@
5858 this.emit( 'update' );
5959 };
6060
61 -ve.es.BranchNode.prototype.onAfterUnshift = function( childModel ) {
 61+ve.ce.BranchNode.prototype.onAfterUnshift = function( childModel ) {
6262 var childView = childModel.createView();
6363 this.emit( 'beforeUnshift', childView );
6464 childView.attach( this );
@@ -70,7 +70,7 @@
7171 this.emit( 'update' );
7272 };
7373
74 -ve.es.BranchNode.prototype.onAfterPop = function() {
 74+ve.ce.BranchNode.prototype.onAfterPop = function() {
7575 this.emit( 'beforePop' );
7676 // Update children
7777 var childView = this.children.pop();
@@ -82,7 +82,7 @@
8383 this.emit( 'update' );
8484 };
8585
86 -ve.es.BranchNode.prototype.onAfterShift = function() {
 86+ve.ce.BranchNode.prototype.onAfterShift = function() {
8787 this.emit( 'beforeShift' );
8888 // Update children
8989 var childView = this.children.shift();
@@ -94,7 +94,7 @@
9595 this.emit( 'update' );
9696 };
9797
98 -ve.es.BranchNode.prototype.onAfterSplice = function( index, howmany ) {
 98+ve.ce.BranchNode.prototype.onAfterSplice = function( index, howmany ) {
9999 var i,
100100 length,
101101 args = Array.prototype.slice.call( arguments, 0 );
@@ -137,7 +137,7 @@
138138 this.emit( 'update' );
139139 };
140140
141 -ve.es.BranchNode.prototype.onAfterSort = function() {
 141+ve.ce.BranchNode.prototype.onAfterSort = function() {
142142 this.emit( 'beforeSort' );
143143 var childModels = this.model.getChildren();
144144 for ( var i = 0; i < childModels.length; i++ ) {
@@ -157,7 +157,7 @@
158158 this.renderContent();
159159 };
160160
161 -ve.es.BranchNode.prototype.onAfterReverse = function() {
 161+ve.ce.BranchNode.prototype.onAfterReverse = function() {
162162 this.emit( 'beforeReverse' );
163163 // Update children
164164 this.reverse();
@@ -175,7 +175,7 @@
176176 *
177177 * @method
178178 */
179 -ve.es.BranchNode.prototype.renderContent = function() {
 179+ve.ce.BranchNode.prototype.renderContent = function() {
180180 for ( var i = 0; i < this.children.length; i++ ) {
181181 this.children[i].renderContent();
182182 }
@@ -187,7 +187,7 @@
188188 * @method
189189 * @param {ve.Range} range Range of content to draw selection around
190190 */
191 -ve.es.BranchNode.prototype.drawSelection = function( range ) {
 191+ve.ce.BranchNode.prototype.drawSelection = function( range ) {
192192 var selectedNodes = this.selectNodes( range, true );
193193 for ( var i = 0; i < this.children.length; i++ ) {
194194 if ( selectedNodes.length && this.children[i] === selectedNodes[0].node ) {
@@ -206,7 +206,7 @@
207207 *
208208 * @method
209209 */
210 -ve.es.BranchNode.prototype.clearSelection = function() {
 210+ve.ce.BranchNode.prototype.clearSelection = function() {
211211 for ( var i = 0; i < this.children.length; i++ ) {
212212 this.children[i].clearSelection();
213213 }
@@ -219,7 +219,7 @@
220220 * @param {ve.Position} position Position to get offset for
221221 * @returns {Integer} Offset of position
222222 */
223 -ve.es.BranchNode.prototype.getOffsetFromRenderedPosition = function( position ) {
 223+ve.ce.BranchNode.prototype.getOffsetFromRenderedPosition = function( position ) {
224224 if ( this.children.length === 0 ) {
225225 return 0;
226226 }
@@ -243,7 +243,7 @@
244244 * @param {Integer} offset Offset to get position for
245245 * @returns {ve.Position} Position of offset
246246 */
247 -ve.es.BranchNode.prototype.getRenderedPositionFromOffset = function( offset, leftBias ) {
 247+ve.ce.BranchNode.prototype.getRenderedPositionFromOffset = function( offset, leftBias ) {
248248 var node = this.getNodeFromOffset( offset, true );
249249 if ( node !== null ) {
250250 return node.getRenderedPositionFromOffset(
@@ -254,7 +254,7 @@
255255 return null;
256256 };
257257
258 -ve.es.BranchNode.prototype.getRenderedLineRangeFromOffset = function( offset ) {
 258+ve.ce.BranchNode.prototype.getRenderedLineRangeFromOffset = function( offset ) {
259259 var node = this.getNodeFromOffset( offset, true );
260260 if ( node !== null ) {
261261 var nodeOffset = this.getOffsetFromNode( node, true );
@@ -268,5 +268,5 @@
269269
270270 /* Inheritance */
271271
272 -ve.extendClass( ve.es.BranchNode, ve.BranchNode );
273 -ve.extendClass( ve.es.BranchNode, ve.es.Node );
 272+ve.extendClass( ve.ce.BranchNode, ve.BranchNode );
 273+ve.extendClass( ve.ce.BranchNode, ve.ce.Node );

Status & tagging log