Skip to content

Commit

Permalink
fix(subscription-ref): add setter for isDisposed
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffbcross committed May 26, 2015
1 parent 1a543b0 commit 6fe5427
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/subscription/subscription-reference.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import Subscription from './subscription';

export default class SubscriptionReference extends Subscription {

protected subscription:Subscription
private _isDisposed:boolean
private _isDisposeScheduled:boolean

_isDisposed:boolean

_isDisposeScheduled:boolean

public isReference:boolean = true


Expand All @@ -30,6 +30,10 @@ export default class SubscriptionReference extends Subscription {
return this._isDisposeScheduled || this._isDisposed;
}

set isDisposed(v:boolean) {
this._isDisposed = v;
}

setSubscription(subscription:Subscription) : void {
this.subscription = subscription;
if(this._isDisposeScheduled) {
Expand Down

0 comments on commit 6fe5427

Please sign in to comment.