From db42221828994a6b3056a96924f4a302e72409d4 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 23 Sep 2010 13:28:33 +0200 Subject: fix parseInt by adding radix so that it does not default to octal if the string starts with 0 --- src/Compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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){ -- cgit v1.2.3