www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit ad056abbafb4bcdd6a20d3ffddf2a59471a268a4
parent 6ee2ecf47e4b1778ea40cfa7f37b79368f475648
Author: Emily Eisenberg <emily@khanacademy.org>
Date:   Fri, 12 Sep 2014 15:38:48 -0700

Fix undefined maxFontSize

Fix getting a NaN maxFontSize in makeVList because symbolNodes don't have a
maxFontSize property.

Test plan:
 - Make sure no huxley screenshots changed

Auditors: alpert

Diffstat:
MdomTree.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/domTree.js b/domTree.js @@ -65,6 +65,7 @@ function symbolNode(value, height, depth, italic, classes, style) { this.italic = italic || 0; this.classes = classes || []; this.style = style || {}; + this.maxFontSize = 0; } symbolNode.prototype.toDOM = function() {