Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #219 from masylum/patch-1

fix for `compile`
  • Loading branch information...
commit bab2d5a2dc5d342e0c83de3294c7d058ad38c00f 2 parents 02f6fa4 + 5e8717b
@tj tj authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.