mathquill/mathquill — pull request #131 by laughinghan (2012-11-15 09:03:56+00:00)
Title: TextPiece: override jQadd instead of finalizeTree

...to set `.dom` and `.jQ`

note that the behavior on `\text{}` is the same because the way `TextBlock::parser` works, there'll be a `TextPiece` whose `.text === ''`, and on `TextBlock::jQadd` the span's .`firstChild` will be `null` and hence falsy and `TextPiece::jQize` will create an empty `DOMTextNode`.