Skip to content

Commit d358fe4

Browse files
committed
reduce size & improve performance
1 parent ea0c107 commit d358fe4

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

assets/ts/definitions/properties.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export const GetOriginalJson = () : JsonProfiler => {
4646
export const RestoreOriginalJson = () => {
4747
if (originalJson) {
4848
json = originalJson;
49+
originalJson = null;
4950
}
5051
}
5152

@@ -119,7 +120,7 @@ export const GetAction = () : ActionTypes => {
119120
* Set the current action
120121
*/
121122
export const SetAction = (status: ActionTypes) => {
122-
action === 'opened' ? SaveItem('data-waterfall-status', 'opened') : DeleteItem('data-waterfall-status');
123+
status === 'opened' ? SaveItem('data-waterfall-status', 'opened') : DeleteItem('data-waterfall-status');
123124
SetWrapperAttribute({
124125
'data-status': status === 'minimize' ? 'opened' : status,
125126
style: null

assets/ts/runner.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -423,11 +423,7 @@ export default (): void => {
423423
SetAttribute(tabElements['benchmark'], {
424424
'data-filter': null,
425425
});
426-
if (lastSeverity !== 'all') {
427-
renderBenchmark('all');
428-
} else {
429-
renderBenchmark('all', lastSearch, true);
430-
}
426+
renderBenchmark(null, lastSearch, true);
431427
return;
432428
}
433429
SetAttribute(headerFilter, {

dist/waterfall.js

Lines changed: 4 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)