Fix rhino merge error. Fixes #1184

This commit is contained in:
Luke Page
2013-02-16 10:02:50 +00:00
parent 178696d141
commit ab3ddf413d

View File

@@ -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);
}