Provide access to references count

This commit is contained in:
Mariusz Nowak
2013-11-22 19:21:15 +01:00
parent dfcd3fc2e1
commit 223a34623d

View File

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