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

Remove thisArg from non-nativesque operators #878

Closed
benlesh opened this issue Dec 3, 2015 · 4 comments
Closed

Remove thisArg from non-nativesque operators #878

benlesh opened this issue Dec 3, 2015 · 4 comments
Labels
help wanted Issues we wouldn't mind assistance with.
Milestone

Comments

@benlesh
Copy link
Member

benlesh commented Dec 3, 2015

Per discussion here #787, we will remove the thisArg arguments from all operators that aren't meant to mirror something in native JavaScript.

So really, only map, filter, reduce and forEach should have thisArgs.

Furthermore, the internal bind helper introduces a closure and should probably be removed in favor of using apply or call directly within those operators, or it should be otherwise refactored to not use closures.

@benlesh benlesh added the help wanted Issues we wouldn't mind assistance with. label Dec 3, 2015
kwonoj added a commit to kwonoj/rxjs that referenced this issue Dec 3, 2015
@benjamingr
Copy link
Contributor

+1 I think this is important for consistency.

Just adding that the following also need a thisArg: some find findIndex and every

kwonoj added a commit to kwonoj/rxjs that referenced this issue Dec 4, 2015
kwonoj added a commit to kwonoj/rxjs that referenced this issue Dec 4, 2015
kwonoj added a commit that referenced this issue Dec 4, 2015
@benlesh benlesh added this to the Initial Beta milestone Dec 8, 2015
kwonoj added a commit to kwonoj/rxjs that referenced this issue Dec 8, 2015
kwonoj added a commit to kwonoj/rxjs that referenced this issue Dec 8, 2015
kwonoj added a commit to kwonoj/rxjs that referenced this issue Dec 8, 2015
luisgabriel added a commit to luisgabriel/RxJS that referenced this issue Dec 8, 2015
kwonoj added a commit that referenced this issue Dec 8, 2015
benlesh pushed a commit that referenced this issue Dec 8, 2015
staltz added a commit to staltz/RxJSNext that referenced this issue Dec 8, 2015
Remove reference to a thisArg argument given to count() operator in its JSDoc.

For issue ReactiveX#878.
staltz added a commit to staltz/RxJSNext that referenced this issue Dec 8, 2015
…ture

Remove an obsolete thisArg from the signature of distinctUntilChanged in KitchenSink file.

For issue ReactiveX#878.
@benlesh benlesh closed this as completed in 14ffce6 Dec 8, 2015
kwonoj pushed a commit that referenced this issue Dec 8, 2015
Remove reference to a thisArg argument given to count() operator in its JSDoc.

For issue #878.
@benlesh
Copy link
Member Author

benlesh commented Dec 8, 2015

Reopening until #993 is merged.

@benlesh benlesh reopened this Dec 8, 2015
luisgabriel added a commit to luisgabriel/RxJS that referenced this issue Dec 8, 2015
Adds thisArg as second argument to have symmetry with native Array.prototype.reduce().

Related to  ReactiveX#878.
luisgabriel added a commit to luisgabriel/RxJS that referenced this issue Dec 8, 2015
Adds thisArg as third argument to have symmetry with native Array.prototype.reduce().

Relates to  ReactiveX#878.
luisgabriel added a commit to luisgabriel/RxJS that referenced this issue Dec 8, 2015
Adds thisArg as third argument to have symmetry with native Array.prototype.reduce().

Relates to ReactiveX#878 and ReactiveX#996.
benlesh pushed a commit that referenced this issue Dec 9, 2015
…ture

Remove an obsolete thisArg from the signature of distinctUntilChanged in KitchenSink file.

For issue #878.
@benlesh
Copy link
Member Author

benlesh commented Dec 9, 2015

Closed by #993

@lock
Copy link

lock bot commented Jun 7, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Issues we wouldn't mind assistance with.
Projects
None yet
Development

No branches or pull requests

2 participants