Mercurial > repos > tabletprog
comparison editor.js @ 132:a503a329acfa
Fix CSS clasnames for list and array literals
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 07 Aug 2013 10:08:55 -0700 |
parents | 8285784f5ff5 |
children | 15aac5334b64 |
comparison
equal
deleted
inserted
replaced
131:8285784f5ff5 | 132:a503a329acfa |
---|---|
210 }; | 210 }; |
211 | 211 |
212 listlit.prototype.toHTML = function(node, up) { | 212 listlit.prototype.toHTML = function(node, up) { |
213 this.up = up; | 213 this.up = up; |
214 this.domNode = newEl('span', { | 214 this.domNode = newEl('span', { |
215 className: 'list', | 215 className: 'listlit', |
216 }); | 216 }); |
217 for (var i = 0; i < this.val.length; i++) { | 217 for (var i = 0; i < this.val.length; i++) { |
218 this.val[i].toHTML(this.domNode, this); | 218 this.val[i].toHTML(this.domNode, this); |
219 } | 219 } |
220 node.appendChild(this.domNode); | 220 node.appendChild(this.domNode); |
247 }; | 247 }; |
248 | 248 |
249 arraylit.prototype.toHTML = function(node, up) { | 249 arraylit.prototype.toHTML = function(node, up) { |
250 this.up = up; | 250 this.up = up; |
251 this.domNode = newEl('span', { | 251 this.domNode = newEl('span', { |
252 className: 'array', | 252 className: 'arraylit', |
253 }); | 253 }); |
254 for (var i = 0; i < this.val.length; i++) { | 254 for (var i = 0; i < this.val.length; i++) { |
255 this.val[i].toHTML(this.domNode, this); | 255 this.val[i].toHTML(this.domNode, this); |
256 } | 256 } |
257 node.appendChild(this.domNode); | 257 node.appendChild(this.domNode); |