r91337 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91336‎ | r91337 | r91338 >
Date:00:01, 2 July 2011
Author:brion
Status:deferred
Tags:
Comment:
followup r91336 - fix misspell in renderer too
Modified paths:
  • /trunk/extensions/ParserPlayground/modules/ext.parserPlayground.renderer.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ParserPlayground/modules/ext.parserPlayground.renderer.js
@@ -84,11 +84,11 @@
8585 node = h[0];
8686 break;
8787 case 'b':
88 - var h = $('<b class="parseNode"></b>').text(tree.text); // hack -- use contents[]
 88+ var h = $('<b class="parseNode"></b>').text(tree.text); // hack -- use content[]
8989 node = h[0];
9090 break;
9191 case 'i':
92 - var h = $('<i class="parseNode"></i>').text(tree.text); // hack -- use contents[]
 92+ var h = $('<i class="parseNode"></i>').text(tree.text); // hack -- use content[]
9393 node = h[0];
9494 break;
9595 case 'template':
@@ -102,8 +102,8 @@
103103 str = '';
104104 }
105105 var p = $('<span></span>').text('|' + str);
106 - if ('contents' in param && param.contents) {
107 - subParseArray(param.contents, p);
 106+ if ('content' in param && param.content) {
 107+ subParseArray(param.content, p);
108108 }
109109 t.append(p);
110110 });

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91336ParserPlayground: handle named refs a bit better, fix for 'content' item in t...brion23:59, 1 July 2011

Status & tagging log