Permalink
Browse files

Don't wrap a fn we don't have in the store

  • Loading branch information...
1 parent c0a6966 commit 55a9e6f826267eef9a60c514b3005f6c0d31f3d9 @bog bog committed Oct 2, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 index.js
View
@@ -241,6 +241,7 @@ var Store = exports.Store = function() {
};
self.get = function (id) {
+ if (!self.has(id)) return null;
return wrap(items[id]);
};

0 comments on commit 55a9e6f

Please sign in to comment.