Code coverage report for cjs/operators/takeUntil.js

Statements: 95.35% (41 / 43)      Branches: 62.5% (10 / 16)      Functions: 100% (14 / 14)      Lines: 100% (35 / 35)      Ignored: none     

All files » cjs/operators/ » takeUntil.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72    1 1   1   2   42   1   1   1 14     1 1 14   14     1 14     1     1 1   1 14   14 14     1     1 1   1 14   14         1 5     1 2     1   1     1  
'use strict';
 
exports.__esModule = true;
exports['default'] = takeUntil;
 
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
 
function _inherits(subClass, superClass) { Iif (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); Eif (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
 
function _classCallCheck(instance, Constructor) { Iif (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
 
var _Subscriber3 = require('../Subscriber');
 
var _Subscriber4 = _interopRequireDefault(_Subscriber3);
 
function takeUntil(observable) {
    return this.lift(new TakeUntilOperator(observable));
}
 
var TakeUntilOperator = (function () {
    function TakeUntilOperator(observable) {
        _classCallCheck(this, TakeUntilOperator);
 
        this.observable = observable;
    }
 
    TakeUntilOperator.prototype.call = function call(subscriber) {
        return new TakeUntilSubscriber(subscriber, this.observable);
    };
 
    return TakeUntilOperator;
})();
 
var TakeUntilSubscriber = (function (_Subscriber) {
    _inherits(TakeUntilSubscriber, _Subscriber);
 
    function TakeUntilSubscriber(destination, observable) {
        _classCallCheck(this, TakeUntilSubscriber);
 
        _Subscriber.call(this, destination);
        this.add(observable._subscribe(new TakeUntilInnerSubscriber(destination)));
    }
 
    return TakeUntilSubscriber;
})(_Subscriber4['default']);
 
var TakeUntilInnerSubscriber = (function (_Subscriber2) {
    _inherits(TakeUntilInnerSubscriber, _Subscriber2);
 
    function TakeUntilInnerSubscriber(destination) {
        _classCallCheck(this, TakeUntilInnerSubscriber);
 
        _Subscriber2.call(this, destination);
    }
 
    //# sourceMappingURL=takeUntil.js.map
 
    TakeUntilInnerSubscriber.prototype._next = function _next() {
        this.destination.complete();
    };
 
    TakeUntilInnerSubscriber.prototype._error = function _error(e) {
        this.destination.error(e);
    };
 
    TakeUntilInnerSubscriber.prototype._complete = function _complete() {};
 
    return TakeUntilInnerSubscriber;
})(_Subscriber4['default']);
 
module.exports = exports['default'];
//# sourceMappingURL=takeUntil.js.map