Skip to content

Commit

Permalink
Merge pull request #20 from TimothyGu/scope
Browse files Browse the repository at this point in the history
Fix `scope` handling
  • Loading branch information
mde committed Jan 11, 2015
2 parents bb57e3d + 8c02af4 commit 85a58dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ exports.render = function () {
// 'scope' is 'context'
// FIXME: Remove this in a future version
if (opts.scope) {
opts.context = opts.scope;
delete opts.context;
if (!opts.context) opts.context = opts.scope;
delete opts.scope;
}

if (opts.cache) {
Expand Down

0 comments on commit 85a58dd

Please sign in to comment.