Code coverage report for cjs/scheduler/QueueAction.js

Statements: 92% (23 / 25)      Branches: 63.64% (7 / 11)      Functions: 100% (5 / 5)      Lines: 95.24% (20 / 21)      Ignored: none     

All files » cjs/scheduler/ » QueueAction.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 271 1 1 1   1 1 1 1 30   1 119 119     119 119 119 119 119 119   1   1  
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) Eif (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var FutureAction_1 = require('./FutureAction');
var QueueAction = (function (_super) {
    __extends(QueueAction, _super);
    function QueueAction() {
        _super.apply(this, arguments);
    }
    QueueAction.prototype._schedule = function (state, delay) {
        Iif (delay === void 0) { delay = 0; }
        Iif (delay > 0) {
            return _super.prototype._schedule.call(this, state, delay);
        }
        this.delay = delay;
        this.state = state;
        var scheduler = this.scheduler;
        scheduler.actions.push(this);
        scheduler.flush();
        return this;
    };
    return QueueAction;
})(FutureAction_1.FutureAction);
exports.QueueAction = QueueAction;
//# sourceMappingURL=QueueAction.js.map