Permalink
Browse files

fix for `compile`

  • Loading branch information...
masylum committed May 14, 2011
1 parent 02f6fa4 commit 5e8717bf79815b9c19bf67cb22b431c5a8b5b5ce
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/jade.js
View
3 lib/jade.js 100755 → 100644
@@ -1,4 +1,3 @@
-
/*!
* Jade
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
@@ -182,7 +181,7 @@ function parse(str, options){
+ escape.toString() + '\n\n'
+ 'var buf = [];\n'
+ (options.self
- ? 'var self = locals || {}, __ = locals.__;\n' + js
+ ? 'var self = locals || {}, __ = __ || locals.__;\n' + js
: 'with (locals || {}) {' + js + '}')
+ 'return buf.join("");';
} catch (err) {

0 comments on commit 5e8717b

Please sign in to comment.