r91286 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91285‎ | r91286 | r91287 >
Date:20:26, 1 July 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Fixed constructors
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.ParagraphBlock.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.ParagraphBlock.js
@@ -12,7 +12,7 @@
1313 this.updateText();
1414 }
1515
16 -Block.prototype.updateText = function() {
 16+ParagraphBlock.prototype.updateText = function() {
1717 var text = [];
1818 for ( var i = 0; i < this.lines.length; i++ ) {
1919 text.push( this.lines[i].text );
@@ -26,7 +26,7 @@
2727 * @param offset {Integer} Position to insert content at
2828 * @param content {Object} Content to insert
2929 */
30 -Block.prototype.insertContent = function( offset, content ) {
 30+ParagraphBlock.prototype.insertContent = function( offset, content ) {
3131 var lineOffset = 0;
3232 for ( var i = 0; i < this.lines.length; i++ ) {
3333 if ( this.lines[i].text.length < offset - lineOffset ) {
@@ -46,7 +46,7 @@
4747 * @param offset {Integer} Position to start removing content from
4848 * @param length {Integer} Length of content to remove
4949 */
50 -Block.prototype.deleteContent = function( offset, length ) {
 50+ParagraphBlock.prototype.deleteContent = function( offset, length ) {
5151 var start,
5252 end,
5353 from,
@@ -91,7 +91,7 @@
9292 *
9393 * @param $container {jQuery Selection} Container to render into
9494 */
95 -Block.prototype.renderContent = function() {
 95+ParagraphBlock.prototype.renderContent = function() {
9696 this.flow.render();
9797 };
9898
@@ -100,8 +100,8 @@
101101 *
102102 * @param position {Position} Position to translate
103103 */
104 -Block.prototype.getLocation = function( position ) {
105 - throw 'Block.getLocation not implemented in this subclass.';
 104+ParagraphBlock.prototype.getLocation = function( position ) {
 105+ throw 'ParagraphBlock.getLocation not implemented in this subclass.';
106106 };
107107
108108 /**
@@ -109,8 +109,8 @@
110110 *
111111 * @param location {Location} Location to translate
112112 */
113 -Block.prototype.getPosition = function( location ) {
114 - throw 'Block.getPosition not implemented in this subclass.';
 113+ParagraphBlock.prototype.getPosition = function( location ) {
 114+ throw 'ParagraphBlock.getPosition not implemented in this subclass.';
115115 };
116116
117117 extend( ParagraphBlock, Block );

Status & tagging log