spreadsheet
typeScript/javascript spreadsheet parser, with formulas.
git clone https://git.vogt.world/spreadsheet.git
Log | Files | README.md
← Commit log
commit
message
Refactoring the way we initialize a Sheet
author
Ben Vogt <[email protected]>
date
2016-12-30 21:08:47
stats
2 file(s) changed, 6 insertions(+), 11 deletions(-)
files
src/Main.ts
src/Sheet.ts
 1diff --git a/src/Main.ts b/src/Main.ts
 2index 0633f2b..57c581e 100644
 3--- a/src/Main.ts
 4+++ b/src/Main.ts
 5@@ -1,4 +1,4 @@
 6 import { Sheet } from "./Sheet"
 7 
 8-var sheet = Sheet();
 9-sheet.init();
10\ No newline at end of file
11+var sheet = new Sheet();
12+sheet.init();
13diff --git a/src/Sheet.ts b/src/Sheet.ts
14index 54e8943..596e093 100644
15--- a/src/Sheet.ts
16+++ b/src/Sheet.ts
17@@ -554,20 +554,15 @@ var Sheet = (function () {
18     }
19   };
20 
21-  var init = function () {
22+  this.init = function () {
23     instance = this;
24     parser = FormulaParser(instance);
25     instance.matrix = new Matrix();
26     instance.matrix.scan();
27   };
28-
29-  return {
30-    init: init,
31-    utils: utils,
32-    helper: helper,
33-    parse: parse
34-  };
35-
36+  this.utils = utils;
37+  this.helper = helper;
38+  this.parse = parse;
39 });
40 
41 export {