Skip to content

Commit 3d4d45e

Browse files
committed
fix to tint argument handling
1 parent acc319a commit 3d4d45e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/image/loading_displaying.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,10 +1253,10 @@ function loadingDisplaying(p5, fn){
12531253
if (args.length === 0) {
12541254
return this._renderer.states.tint; // getter
12551255
}
1256-
if (args && args.length) {
1256+
else {
12571257
this._renderer.states.setValue('tint', this.color(...args));
1258+
return this;
12581259
}
1259-
return this;
12601260
};
12611261

12621262
/**

0 commit comments

Comments
 (0)