Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…rlach-master
  • Loading branch information...
commit e487b45820fc5a3ec61f40c22c32742357475c81 2 parents a87c33a + a8d1e26
James Halliday authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  index.js
3  index.js
View
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.