Skip to content

Commit

Permalink
Merge pull request #2212 from far-blue/2072-expose-additional-methods
Browse files Browse the repository at this point in the history
expose additional methods as per issue #2072
  • Loading branch information
mbest committed Apr 15, 2017
2 parents e3240c1 + 99c1cd7 commit 975affd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/subscribables/dependencyDetection.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ ko.exportSymbol('computedContext', ko.computedContext);
ko.exportSymbol('computedContext.getDependenciesCount', ko.computedContext.getDependenciesCount);
ko.exportSymbol('computedContext.getDependencies', ko.computedContext.getDependencies);
ko.exportSymbol('computedContext.isInitial', ko.computedContext.isInitial);
ko.exportSymbol('computedContext.registerDependency', ko.computedContext.registerDependency);

ko.exportSymbol('ignoreDependencies', ko.ignoreDependencies = ko.dependencyDetection.ignore);
1 change: 1 addition & 0 deletions src/subscribables/subscribable.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ var ko_subscribable_fn = {
extend: applyExtenders
};

ko.exportProperty(ko_subscribable_fn, 'init', ko_subscribable_fn.init);
ko.exportProperty(ko_subscribable_fn, 'subscribe', ko_subscribable_fn.subscribe);
ko.exportProperty(ko_subscribable_fn, 'extend', ko_subscribable_fn.extend);
ko.exportProperty(ko_subscribable_fn, 'getSubscriptionsCount', ko_subscribable_fn.getSubscriptionsCount);
Expand Down

0 comments on commit 975affd

Please sign in to comment.