Skip to content

Commit

Permalink
Curlies are not optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mde committed Jan 11, 2015
1 parent 85a58dd commit caf5384
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ exports.render = function () {
// 'scope' is 'context'
// FIXME: Remove this in a future version
if (opts.scope) {
if (!opts.context) opts.context = opts.scope;
if (!opts.context) {
opts.context = opts.scope;
}
delete opts.scope;
}

Expand Down

0 comments on commit caf5384

Please sign in to comment.