[Pkg-javascript-commits] [node-async] 209/480: Expose memoized function's memos

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:27 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-async.

commit 34057992c88d7264793becaaf2f2944595c7ea27
Author: Parsha Pourkhomami <parshap+git at gmail.com>
Date:   Sat Sep 1 12:39:51 2012 -0700

    Expose memoized function's memos
    
    Add a `memo` property to the return value of `async.memoize` (the
    memoized function) to expose the collection of already-calculated
    values.
---
 lib/async.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/async.js b/lib/async.js
index 7cc4f5e..b708bc9 100644
--- a/lib/async.js
+++ b/lib/async.js
@@ -679,6 +679,7 @@
                 }]));
             }
         };
+        memoized.memo = memo;
         memoized.unmemoized = fn;
         return memoized;
     };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git



More information about the Pkg-javascript-commits mailing list