Skip to content

Commit

Permalink
Merge pull request #3 from rabchev/master
Browse files Browse the repository at this point in the history
Bound the get, set and del functions to their original “this” context ...
  • Loading branch information
BryanDonovan committed Dec 8, 2013
2 parents 1aeb828 + 47ea588 commit d034288
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/caching.js
Expand Up @@ -48,11 +48,11 @@ var caching = function (args) {
});
};

self.get = self.store.get;
self.get = self.store.get.bind(self.store);

self.set = self.store.set;
self.set = self.store.set.bind(self.store);

self.del = self.store.del;
self.del = self.store.del.bind(self.store);

return self;
};
Expand Down

0 comments on commit d034288

Please sign in to comment.