optimization level is taken from env now

This commit is contained in:
cloudhead 2010-03-22 23:13:24 -04:00
parent ca43e06db9
commit 5977640040

View File

@ -155,14 +155,14 @@ less.Parser = function Parser(env) {
}
}
this.env = env || {};
// The optimization level dictates the thoroughness of the parser,
// the lower the number, the less nodes it will create in the tree.
// This could matter for debugging, or if you want to access
// the individual nodes in the tree.
this.optimization = 2;
this.optimization = this.env.optimization || 2;
this.env = env || {};
//
// The Parser