From ab3ddf413dc2f32def9eb773c22aa4833d0c4874 Mon Sep 17 00:00:00 2001 From: Luke Page Date: Sat, 16 Feb 2013 10:02:50 +0000 Subject: [PATCH] Fix rhino merge error. Fixes #1184 --- lib/less/rhino.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/less/rhino.js b/lib/less/rhino.js index 8ac93eef..9a654b9d 100644 --- a/lib/less/rhino.js +++ b/lib/less/rhino.js @@ -6,7 +6,7 @@ function loadStyleSheet(sheet, callback, reload, remaining) { contents = sheet.contents || {}, input = readFile(sheetName); - input = input.replace(/^\xEF\xBB\xBF/, '') + input = input.replace(/^\xEF\xBB\xBF/, ''); contents[sheetName] = input; @@ -14,6 +14,7 @@ function loadStyleSheet(sheet, callback, reload, remaining) { paths: [sheet.href.replace(/[\w\.-]+$/, '')], contents: contents }); + parser.parse(input, function (e, root) { if (e) { return error(e, sheetName); } @@ -120,5 +121,5 @@ function error(e, filename) { errorline(e, 1); errorline(e, 2); } - print(content); + print(content); } \ No newline at end of file