Skip to content

Commit

Permalink
fix accessory/accessory 'setTarget' return value
Browse files Browse the repository at this point in the history
Always return 'this'
pentamania committed May 28, 2021
1 parent 04fbff8 commit beddcca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accessory/accessory.js
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ export class Accessory extends EventDispatcher {
* @returns {this}
*/
setTarget(target) {
if (this.target === target) return ;
if (this.target === target) return this;

this.target = target;
return this;

0 comments on commit beddcca

Please sign in to comment.