Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
Changed: use obj.property instead of obj['property'] notation
Browse files Browse the repository at this point in the history
  • Loading branch information
jsilvestre committed Feb 3, 2014
1 parent 0bd3176 commit 2a8bed8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Expand Up @@ -22,9 +22,9 @@ function JadeCompiler(cfg) {
// cloning is mandatory because config is not mutable
this.options = clone(config) || {}

this.options['compileDebug'] = false;
this.options['client'] = true;
this.options['basedir'] = (config && config.basedir) || defaultBaseDir;
this.options.compileDebug = false;
this.options.client = true;
this.options.basedir = (config && config.basedir) || defaultBaseDir;

this.getDependencies = progeny({rootPath: this.options.basedir});
}
Expand All @@ -36,7 +36,7 @@ JadeCompiler.prototype.extension = 'jade';
JadeCompiler.prototype.compile = function(data, path, callback) {
var compiled, error, result;
try {
this.options['filename'] = path;
this.options.filename = path;
// cloning is mandatory because Jade changes it
options = clone(this.options);
compiled = jade.compileClient(data, options);
Expand Down

0 comments on commit 2a8bed8

Please sign in to comment.