Skip to content

Commit

Permalink
Bugfix: Detection of already memoized functions during memoization (b…
Browse files Browse the repository at this point in the history
…ug was introduced in refactoring)
  • Loading branch information
tmuellerleile committed Feb 5, 2012
1 parent e256f4a commit cab295f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var mmemoize = function (memcached, config) {
var that = {};

var memoize = function (fct, keyPrefix) {
if (fct._unmemoized !== undefined) { return; } // fct() already memoized
if (fct.dememoize !== undefined) { return; } // fct() already memoized
var unmemoized = fct; // save original function for dememoization purposes

var mFct = function () {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mmemoize",
"version": "0.1.0a",
"version": "0.1.1a",
"description": "Memoize asynchronous functions using memcached",
"keywords": ["memoize", "memcached"],
"author": "Tobias Muellerleile <tobias@muellerleile.net> (http://tobias.muellerleile.net)",
Expand Down

0 comments on commit cab295f

Please sign in to comment.