diff options
| author | Misko Hevery | 2010-09-23 13:28:33 +0200 |
|---|---|---|
| committer | Misko Hevery | 2010-09-23 13:28:33 +0200 |
| commit | db42221828994a6b3056a96924f4a302e72409d4 (patch) | |
| tree | c06321b3ef8a5f1218dd4da76ce6c4287840a36a /src/Compiler.js | |
| parent | af030b888e10c978dc68032758b18e36de7b4cf1 (diff) | |
| download | angular.js-db42221828994a6b3056a96924f4a302e72409d4.tar.bz2 | |
fix parseInt by adding radix so that it does not default to octal if the string starts with 0
Diffstat (limited to 'src/Compiler.js')
| -rw-r--r-- | src/Compiler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compiler.js b/src/Compiler.js index 6252e0c4..48638bc3 100644 --- a/src/Compiler.js +++ b/src/Compiler.js @@ -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){ |
