Browse files

Merge branch 'master' of git://github.com/jscharlach/dnode into jscha…

…rlach-master
  • Loading branch information...
2 parents a87c33a + a8d1e26 commit e487b45820fc5a3ec61f40c22c32742357475c81 @substack committed Feb 24, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 index.js
View
3 index.js
@@ -26,8 +26,9 @@ function D (cons, opts) {
if (opts.weak !== false && !opts.proto) {
opts.proto = {};
opts.proto.wrap = function (cb, id) {
+ var proto = this;
return weak(cb, function () {
- if (self.proto) self.proto.cull(id);
+ proto.cull(id);
});
};
opts.proto.unwrap = function (ref, id) {

0 comments on commit e487b45

Please sign in to comment.