socialcalc
Version:
Collaborative spreadsheet editor
26 lines (23 loc) • 897 B
JavaScript
if('undefined' === typeof document) {
// We don't really need a DOM-based presentation layer on the server
SocialCalc.GetEditorCellElement = function () {};
SocialCalc.ReplaceCell = function () {};
SocialCalc.EditorRenderSheet = function () {};
SocialCalc.SpreadsheetControlSortSave = function () { return ""; };
SocialCalc.SpreadsheetControlStatuslineCallback = function () {};
SocialCalc.DoPositionCalculations = function (editor) {
SocialCalc.EditorSheetStatusCallback(
null, "doneposcalc", null, editor
);
};
}
// Compatibility with webworker-threads
if (typeof self !== 'undefined' && self.thread) {
window.setTimeout = function (cb, ms) {
if (ms <= 1) { self.thread.nextTick(cb); }
};
window.clearTimeout = function () {};
}
// Just return a value to define the module export.
return SocialCalc;
}));