Window.prototype.removeListener = function (listener) {
var index = this._undecorated.indexOf(this)
this._undecorated.splice(index, 1)
this._listeners.splice(index, 1)
}
Window.prototype._push = function (value) {
if (value != null) {
assert(this._header.node == this.head)
for (var i = 0, I = this._listeners.length; i < I; i++) {
this._listeners[i].pushed(this._header.node)
}
}
}
Window.prototype._shift = function (node) {
if (node.body != null) {
for (var i = 0, I = this._listeners.length; i < I; i++) {
this._listeners[i].shifted(node)
}
}
}
module.exports = Window