Don't change global prototype: local utils.indexOf

Auditors: eater
This commit is contained in:
Ben Alpert
2014-01-14 19:52:08 -08:00
parent ee58c126fb
commit 99e7710020
2 changed files with 18 additions and 32 deletions

View File

@@ -363,7 +363,7 @@ Parser.prototype.parseNucleus = function(pos) {
if (group) {
return new ParseResult(
new ParseNode("sizing", {
size: "size" + (sizeFuncs.indexOf(nucleus.type) + 1),
size: "size" + (utils.indexOf(sizeFuncs, nucleus.type) + 1),
value: group.result
}),
group.position);