1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-30 10:55:45 +01:00

Small fixes. Add Components to list of magical JS global properties.

--HG--
extra : rebase_source : ba08f90f02d5362108cfbffd2f9ce9a89d8e905e
This commit is contained in:
Kris Maglione
2010-12-02 18:00:20 -05:00
parent 033c3b43c8
commit 2d957c37f8
5 changed files with 7 additions and 9 deletions

View File

@@ -184,7 +184,7 @@ const Template = Module("Template", {
let n = 0;
for (let [i, length] in iter) {
if (n++ > 50) // Prevent infinite loops.
return s + <>{str.substr(start)}</>;
break;
XML.ignoreWhitespace = false;
s += <>{str.substring(start, i)}</>;
s += highlight(str.substr(i, length));