Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Useless call? #193

Closed
samreid opened this issue Oct 7, 2015 · 8 comments
Closed

Useless call? #193

samreid opened this issue Oct 7, 2015 · 8 comments

Comments

@samreid
Copy link
Member

samreid commented Oct 7, 2015

@jonathanolson ESList is reporting useless call for these cases:

/Users/samreid/github/dot/js/Permutation.js
  50:7  error  unnecessary ".call()"  no-useless-call

/Users/samreid/github/scenery/js/display/PixiSelfDrawable.js
  43:9  error  unnecessary ".call()"  no-useless-call

/Users/samreid/github/scenery/js/display/SVGSelfDrawable.js
   65:9   error  unnecessary ".call()"  no-useless-call
  147:30  error  unnecessary ".call()"  no-useless-call
  163:30  error  unnecessary ".call()"  no-useless-call

Can we fix them or is there a reason they need to be that way?

@pixelzoom
Copy link
Contributor

Why is this in scenery-phet? The calls are in scenery and dot.

@samreid
Copy link
Member Author

samreid commented Nov 5, 2015

Looks like a manual error, this should have been created in scenery repo.

jonathanolson added a commit to phetsims/dot that referenced this issue Nov 9, 2015
jonathanolson added a commit to phetsims/scenery that referenced this issue Nov 9, 2015
@jonathanolson
Copy link
Contributor

Fixed the mentioned issues.

zepumph added a commit to phetsims/molecule-shapes that referenced this issue Nov 7, 2019
zepumph added a commit to phetsims/balancing-act that referenced this issue Nov 7, 2019
zepumph added a commit to phetsims/chipper that referenced this issue Nov 7, 2019
@zepumph
Copy link
Member

zepumph commented Nov 7, 2019

While working on phetsims/chipper#794, I found a TODO marked for this issue, and a commented out lint rule. It looks like back in 2015 it was worth changing these usages, and when I added the lint rule back in, there were only 5 issues, so I fixed them, @jonathanolson please review these and close if all seems good, and keeping the lint rule is best.

@pixelzoom
Copy link
Contributor

Assingned to @jonathanolson for review for 27 months. Raising priority to high.

@jonathanolson
Copy link
Contributor

@zepumph, the commit https://github.com/phetsims/phet-io-wrappers/commit/90d9f607abb5b67438a73fb1dec452c860d638b1 looks buggy (the array of parameters should have been removed into a parameter list). I can't find this code in master, does it still exist?

@jonathanolson
Copy link
Contributor

The others look good!

@jonathanolson jonathanolson removed their assignment Feb 26, 2021
@jonathanolson jonathanolson moved this from Review to On Hold in Jonathan Olson's Board Feb 26, 2021
@zepumph
Copy link
Member

zepumph commented Mar 1, 2021

Agreed. It isn't there anymore. Closing

@zepumph zepumph closed this as completed Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants