From 5977640040ae0aadceb0c05cb7e6d2c187685ec1 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Mon, 22 Mar 2010 23:13:24 -0400 Subject: [PATCH] optimization level is taken from env now --- lib/less/parser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/less/parser.js b/lib/less/parser.js index ab53701..eda203c 100644 --- a/lib/less/parser.js +++ b/lib/less/parser.js @@ -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