fix parseInt by adding radix so that it does not default to octal if the string starts with 0

This commit is contained in:
Misko Hevery 2010-09-23 13:28:33 +02:00
parent af030b888e
commit db42221828

View file

@ -130,7 +130,7 @@ Compiler.prototype = {
priority = priority || 0;
}
if (isString(priority)) {
priority = PRIORITY[uppercase(priority)] || parseInt(priority);
priority = PRIORITY[uppercase(priority)] || parseInt(priority, 10);
}
template = new Template(priority);
eachAttribute(element, function(value, name){