Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

for to make weakrefs work with .listen

  • Loading branch information...
commit ef2e0e507c6cb8013d19266d9cbd96af68d6c54d 1 parent c686f66
@substack authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.js
View
2  index.js
@@ -27,7 +27,7 @@ function D (cons, opts) {
opts.proto = {};
opts.proto.wrap = function (cb, id) {
return weak(cb, function () {
- self.proto.cull(id);
+ if (self.proto) self.proto.cull(id);
});
};
opts.proto.unwrap = function (ref, id) {
Please sign in to comment.
Something went wrong with that request. Please try again.