mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-04-01 22:10:24 +00:00
fix parseInt by adding radix so that it does not default to octal if the string starts with 0
This commit is contained in:
parent
af030b888e
commit
db42221828
1 changed files with 1 additions and 1 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in a new issue