Browse files

refactor

  • Loading branch information...
1 parent 4b8134e commit 0fda734c49bc24ae3797c95f6b816aaa946a32e8 @tj tj committed Sep 4, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 index.js
View
4 index.js
@@ -66,12 +66,10 @@ function compile(str) {
}
}
- js = js.join('').replace(/\n/g, '\\n');
-
js = '\n'
+ indent(escape.toString()) + ';\n\n'
+ indent(section.toString()) + ';\n\n'
- + ' return ' + js;
+ + ' return ' + js.join('').replace(/\n/g, '\\n');
return new Function('obj', js);
}

0 comments on commit 0fda734

Please sign in to comment.