(html, preserveWhitespace)
| 112 | String._parser = null; |
| 113 | |
| 114 | function String(html, preserveWhitespace) { |
| 115 | if (preserveWhitespace == null) { |
| 116 | preserveWhitespace = false; |
| 117 | } |
| 118 | this._preserveWhitespace = preserveWhitespace; |
| 119 | if (html) { |
| 120 | if (HTMLString.String._parser === null) { |
| 121 | HTMLString.String._parser = new _Parser(); |
| 122 | } |
| 123 | this.characters = HTMLString.String._parser.parse(html, this._preserveWhitespace).characters; |
| 124 | } else { |
| 125 | this.characters = []; |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | String.prototype.isWhitespace = function() { |
| 130 | var c, _i, _len, _ref; |
nothing calls this directly
no outgoing calls
no test coverage detected