Skip to content

Commit

Permalink
Fix for issue knockout#68
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSanderson committed Mar 26, 2011
1 parent 0a88f6d commit 9fcd3de
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 68 deletions.
2 changes: 1 addition & 1 deletion build/output/knockout-latest.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ ko.subscribable = function () {
var _subscriptions = [];

this.subscribe = function (callback, callbackTarget) {
var boundCallback = callbackTarget ? function () { callback.call(callbackTarget) } : callback;
var boundCallback = callbackTarget ? callback.bind(callbackTarget) : callback;

var subscription = new ko.subscription(boundCallback, function () {
ko.utils.arrayRemoveItem(_subscriptions, subscription);
Expand Down
Loading

0 comments on commit 9fcd3de

Please sign in to comment.