Skip to content

Commit

Permalink
jadeHelpers -> jade
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jul 15, 2011
1 parent 1314e92 commit 2822402
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 2 additions & 4 deletions lib/jade.js
Expand Up @@ -180,8 +180,7 @@ function parse(str, options){
if (inline) {
inlined = attrs.toString() + '\n' + escape.toString() + '\n';
} else {
jadeHelpers = exports.helpers;
inlined = 'var attrs = jadeHelpers.attrs, escape = jadeHelpers.escape;\n';
inlined = 'var attrs = jade.attrs, escape = jade.escape;\n';
}

try {
Expand Down Expand Up @@ -243,8 +242,7 @@ exports.compile = function(str, options){
if (inline) {
inlined = rethrow.toString();
} else {
jadeHelpers = exports.helpers;
inlined = 'var rethrow = jadeHelpers.rethrow;';
inlined = 'var rethrow = jade.rethrow;';
}

if (options.compileDebug !== false) {
Expand Down
5 changes: 0 additions & 5 deletions test/jade.test.js
Expand Up @@ -867,11 +867,6 @@ module.exports = {
assert.equal('<p>bar</p>', fn.call({ foo: 'bar' }));
},

'test .compile() with inline false': function(assert){
var fn = jade.compile('p foo\np #{bar}', { inline: false });
assert.equal('<p>foo</p><p>baz</p>', fn({bar: 'baz'}));
},

'test .compile() no debug': function(assert){
var fn = jade.compile('p foo\np #{bar}', {compileDebug: false});
assert.equal('<p>foo</p><p>baz</p>', fn({bar: 'baz'}));
Expand Down

0 comments on commit 2822402

Please sign in to comment.