diff --git a/src/operator/extended/distinctUntilKeyChanged.ts b/src/operator/extended/distinctUntilKeyChanged.ts index 28dc0afa44..411a401e6b 100644 --- a/src/operator/extended/distinctUntilKeyChanged.ts +++ b/src/operator/extended/distinctUntilKeyChanged.ts @@ -1,10 +1,10 @@ import {distinctUntilChanged} from '../distinctUntilChanged'; -export function distinctUntilKeyChanged(key: string, compare?: (x: any, y: any) => boolean, thisArg?: any) { +export function distinctUntilKeyChanged(key: string, compare?: (x: any, y: any) => boolean) { return distinctUntilChanged.call(this, function(x, y) { if (compare) { - return compare.call(thisArg, x[key], y[key]); + return compare(x[key], y[key]); } return x[key] === y[key]; }); -} +} \ No newline at end of file