Browse Source

Bound the get, set and del functions to their original “this” context when assigning a store.

hotfix/0.7.1
Boyan Rabchev 11 years ago
parent
commit
47ea588810
  1. 6
      lib/caching.js

6
lib/caching.js

@ -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;
};

Loading…
Cancel
Save