Skip to content

Commit

Permalink
Added nullptr guard to avoid exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
decden committed Mar 29, 2017
1 parent 89933a1 commit 072960f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/subscribables/observableArray.changeTracking.js
Expand Up @@ -36,7 +36,8 @@ ko.extenders['trackArrayChanges'] = function(target, options) {
target['notifySubscribers'] = underlyingNotifySubscribersFunction;
underlyingNotifySubscribersFunction = undefined;
}
arrayChangeSubscription.dispose();
if (arrayChangeSubscription)
arrayChangeSubscription.dispose();
arrayChangeSubscription = null;
trackingChanges = false;
}
Expand Down

0 comments on commit 072960f

Please sign in to comment.