tslib_1.__extends(BufferToggleSubscriber, _super);
function BufferToggleSubscriber(destination, openings, closingSelector) {
var _this = _super.call(this, destination) || this;
- _this.openings = openings;
_this.closingSelector = closingSelector;
_this.contexts = [];
_this.add(subscribeToResult(_this, openings));
this.contexts = null;
_super.prototype._complete.call(this);
};
- BufferToggleSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {
+ BufferToggleSubscriber.prototype.notifyNext = function (outerValue, innerValue) {
outerValue ? this.closeBuffer(outerValue) : this.openBuffer(innerValue);
};
BufferToggleSubscriber.prototype.notifyComplete = function (innerSub) {