Skip to content

Commit

Permalink
fix(BoundNodeCallbackObservable): cast to any to access to private …
Browse files Browse the repository at this point in the history
…field in `source`

This needs to pass the compiling with tsc v2.0
  • Loading branch information
tetsuharuohzeki committed Jul 19, 2016
1 parent f1a5705 commit 54f342f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/observable/BoundNodeCallbackObservable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ export class BoundNodeCallbackObservable<T> extends Observable<T> {
function dispatch<T>(state: { source: BoundNodeCallbackObservable<T>, subscriber: Subscriber<T> }) {
const self = (<Subscription> this);
const { source, subscriber } = state;
const { callbackFunc, args, scheduler } = source;
// XXX: cast to `any` to access to the private field in `source`.
const { callbackFunc, args, scheduler } = source as any;
let subject = source.subject;

if (!subject) {
Expand Down

0 comments on commit 54f342f

Please sign in to comment.