Skip to content

Commit 4c72a8d

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

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

assets/ts/definitions/properties.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ export const GetAction = () : ActionTypes => {
120120
* Set the current action
121121
*/
122122
export const SetAction = (status: ActionTypes) => {
123+
if (!isValidAction(status)) {
124+
return;
125+
}
123126
status === 'opened' ? SaveItem('data-waterfall-status', 'opened') : DeleteItem('data-waterfall-status');
124127
SetWrapperAttribute({
125128
'data-status': status === 'minimize' ? 'opened' : status,

dist/waterfall.js

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

0 commit comments

Comments
 (0)