Skip to content

Commit

Permalink
Merge pull request #17 from apircher/master
Browse files Browse the repository at this point in the history
Fix for Issue #11
  • Loading branch information
Hans Fjällemark committed Jul 17, 2013
2 parents 81f63bc + 8029721 commit be71a10
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions knockout.dirtyFlag.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@
hashFunction = hashFunction || ko.toJSON;

var
self = this,
_objectToTrack = objectToTrack,
_lastCleanState = ko.observable(hashFunction(_objectToTrack)),
_isInitiallyDirty = ko.observable(isInitiallyDirty),

result = function () {
var self = this;

self.forceDirty = function ()
{
_isInitiallyDirty(true);
Expand All @@ -55,10 +54,9 @@
_lastCleanState(hashFunction(_objectToTrack));
_isInitiallyDirty(false);
};

return self;
};

return result;
};
})(ko);

0 comments on commit be71a10

Please sign in to comment.