Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit db42221

Browse files
committed
fix parseInt by adding radix so that it does not default to octal if the string starts with 0
1 parent af030b8 commit db42221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compiler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Compiler.prototype = {
130130
priority = priority || 0;
131131
}
132132
if (isString(priority)) {
133-
priority = PRIORITY[uppercase(priority)] || parseInt(priority);
133+
priority = PRIORITY[uppercase(priority)] || parseInt(priority, 10);
134134
}
135135
template = new Template(priority);
136136
eachAttribute(element, function(value, name){

0 commit comments

Comments
 (0)