diff --git a/lib/ext/ref-counter.js b/lib/ext/ref-counter.js index 6c0ee95..ef6e343 100644 --- a/lib/ext/ref-counter.js +++ b/lib/ext/ref-counter.js @@ -32,4 +32,9 @@ ext.refCounter = function (ignore, conf, options) { } return null; }; + conf.memoized.getRefCount = function () { + var id = conf.get(arguments); + if (!cache.hasOwnProperty(id)) return 0; + return cache[id]; + }; };