mirror of
https://github.com/less/less.js.git
synced 2026-01-23 06:07:56 -05:00
Fix rhino merge error. Fixes #1184
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user