comparison editor.js @ 114:f2b435509301

Work around desugaring of && and || in editor.
author Mike Pavone <pavone@retrodev.com>
date Mon, 15 Apr 2013 09:34:32 -0700
parents c0bfff39abe3
children 9cf3e0b18ecc
comparison
equal deleted inserted replaced
113:c0bfff39abe3 114:f2b435509301
63 this.left.toHTML(base, this); 63 this.left.toHTML(base, this);
64 base.appendChild(newEl('span', { 64 base.appendChild(newEl('span', {
65 textContent: this.op, 65 textContent: this.op,
66 className: 'opname' 66 className: 'opname'
67 })); 67 }));
68 this.right.toHTML(base, this); 68 if (this.op == '&&' || this.op == '||') {
69 this.right.expressions[0].toHTML(base, this);
70 } else {
71 this.right.toHTML(base, this);
72 }
69 node.appendChild(base); 73 node.appendChild(base);
70 }; 74 };
71 75
72 intlit.prototype.toHTML = function(node, up) { 76 intlit.prototype.toHTML = function(node, up) {
73 this.up = up; 77 this.up = up;