Permalink
Browse files

came up with a better solution to the consumed-by problem

  • Loading branch information...
1 parent f416ced commit 9edb4da2b3c237c255db0eff8dab25d5f03c50a1 @alexwarth alexwarth committed Jun 9, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 ometa-base.js
View
@@ -117,7 +117,8 @@ function makeOMInputStreamProxy(target) {
return objectThatDelegatesTo(target, {
memo: { },
target: target,
- tail: function() { return this.hasOwnProperty("tl") ? this.tl : (this.tl = makeOMInputStreamProxy(target.tail())) }
+ tl: undefined,
+ tail: function() { return this.tl || (this.tl = makeOMInputStreamProxy(target.tail())) }
})
}

0 comments on commit 9edb4da

Please sign in to comment.