Lines Matching refs:main
56 let main = {
61 if (mode !== main.currentState.mode) {
64 let callTreeState = Object.assign({}, main.currentState.callTree);
71 let state = Object.assign({}, main.currentState);
90 main.currentState = state;
91 main.delayRender();
96 if (attribution !== main.currentState.attribution) {
97 let callTreeState = Object.assign({}, main.currentState.callTree);
99 main.currentState = setCallTreeState(main.currentState, callTreeState);
100 main.delayRender();
105 if (sort !== main.currentState.sort) {
106 let callTreeState = Object.assign({}, main.currentState.callTree);
108 main.currentState = setCallTreeState(main.currentState, callTreeState);
109 main.delayRender();
114 if (categories !== main.currentState.categories) {
115 let callTreeState = Object.assign({}, main.currentState.callTree);
117 main.currentState = setCallTreeState(main.currentState, callTreeState);
118 main.delayRender();
123 if (start !== main.currentState.start ||
124 end !== main.currentState.end) {
125 main.currentState = Object.assign({}, main.currentState);
126 main.currentState.start = start;
127 main.currentState.end = end;
128 main.delayRender();
144 main.currentState.sourceData = new SourceData(file);
148 if (file !== main.currentState.file) {
149 let lastMode = main.currentState.mode || "summary";
150 main.currentState = emptyState();
151 main.currentState.file = file;
152 main.updateSources(file);
153 main.setMode(lastMode);
154 main.delayRender();
159 if (codeId !== main.currentState.currentCodeId) {
160 main.currentState = Object.assign({}, main.currentState);
161 main.currentState.currentCodeId = codeId;
162 main.delayRender();
167 if (main.currentState.viewingSource !== value) {
168 main.currentState = Object.assign({}, main.currentState);
169 main.currentState.viewingSource = value;
170 main.delayRender();
175 main.delayRender();
184 main.setFile(JSON.parse(event.target.result));
192 main.setFile(null);
201 if (main.renderPending) return;
202 main.renderPending = true;
205 main.renderPending = false;
207 c.render(main.currentState);
406 main.setCurrentCode(codeId);
420 main.setCurrentCode(codeId);
421 main.setViewingSource(true);
441 main.setCallTreeAttribution(this.selectAttribution.value);
445 main.setCallTreeCategories(this.selectCategories.value);
449 main.setCallTreeSort(this.selectSort.value);
549 if (main.currentState.sourceData &&
551 main.currentState.sourceData.hasSource(
821 main.setViewInterval(start, end);
1137 if (main.currentState.mode === id) return;
1138 let old = $("mode-" + main.currentState.mode);
1141 main.setMode(id);
1356 main.setViewingSource(false);