Skip to content

Commit

Permalink
Fix uniforms checking and cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchuan committed Sep 4, 2023
1 parent 2223ff4 commit 509db6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/generator/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ class Rules {
let fname = arg.name.substr(1);
let fn = this.pick_func(fname);
if (typeof fn === 'function') {
this.check_uniforms(fname);
if (this.is_composable(fname)) {
let value = get_value((arg.arguments[0] || [])[0]);
let temp_arg;
Expand Down Expand Up @@ -293,6 +294,7 @@ class Rules {
let fname = val.name.substr(1);
let fn = this.pick_func(fname);
if (typeof fn === 'function') {
this.check_uniforms(fname);
if (this.is_composable(fname)) {
let value = get_value((val.arguments[0] || [])[0]);
let temp_arg;
Expand Down
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ if (typeof customElements !== 'undefined') {
animation.cancel();
}
this.animations = [];
this.remove_uniform_mouse();
}

update(styles) {
Expand Down

0 comments on commit 509db6c

Please sign in to comment.