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

refactor(distinctUntilKeyChanged): remote thisArg #1004

Closed
wants to merge 1 commit into from

Conversation

kwonoj
Copy link
Member

@kwonoj kwonoj commented Dec 9, 2015

PR #993 updates interface of distinctUntilKeyChanged, this PR removes thisArg from implementation.

@@ -1,10 +1,10 @@
import {distinctUntilChanged} from '../distinctUntilChanged';

export function distinctUntilKeyChanged<T>(key: string, compare?: (x: any, y: any) => boolean, thisArg?: any) {
export function distinctUntilKeyChanged<T>(key: string, compare?: (x: any, y: any) => boolean) {
return distinctUntilChanged.call(this, function(x, y) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually this also seems bit .. to be modified. is this function need to call distinctUntilChanged with this context?

@benlesh
Copy link
Member

benlesh commented Dec 9, 2015

Oops. Okay, thanks @kwonoj

@benlesh
Copy link
Member

benlesh commented Dec 9, 2015

Merged with 1979d5f. Good catch, @kwonoj

@benlesh benlesh closed this Dec 9, 2015
@kwonoj kwonoj deleted the refactor-distinctkey branch December 9, 2015 00:36
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants