aboutsummaryrefslogtreecommitdiffstats
path: root/src/Compiler.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Compiler.js')
-rw-r--r--src/Compiler.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compiler.js b/src/Compiler.js
index c45dd46e..6252e0c4 100644
--- a/src/Compiler.js
+++ b/src/Compiler.js
@@ -8,7 +8,7 @@ function Template(priority) {
this.paths = [];
this.children = [];
this.inits = [];
- this.priority = priority || 0;
+ this.priority = priority;
}
Template.prototype = {
@@ -130,7 +130,7 @@ Compiler.prototype = {
priority = priority || 0;
}
if (isString(priority)) {
- priority = PRIORITY[uppercase(priority)] || 0;
+ priority = PRIORITY[uppercase(priority)] || parseInt(priority);
}
template = new Template(priority);
eachAttribute(element, function(value, name){