forked from audreyt/ethercalc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exports.js
23 lines (21 loc) · 961 Bytes
/
exports.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if (typeof global != 'undefined') var window = global;
if (typeof SocialCalc != 'undefined' && typeof module != 'undefined') module.exports = SocialCalc;
if (typeof document == 'undefined') var document = SocialCalc.document = {};
// 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 () {};
}
// We don't really need a DOM-based presentation layer for embedded SC.
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
);
}