Sha256: 9d61a7abe18383da38f9670f3560333b7fede9cb56a7adc7f9f744a968de7cf8

Contents?: true

Size: 1.66 KB

Versions: 49

Compression:

Stored size: 1.66 KB

Contents

"use strict";
var root_1 = require('./root');
var RequestAnimationFrameDefinition = (function () {
    function RequestAnimationFrameDefinition(root) {
        if (root.requestAnimationFrame) {
            this.cancelAnimationFrame = root.cancelAnimationFrame.bind(root);
            this.requestAnimationFrame = root.requestAnimationFrame.bind(root);
        }
        else if (root.mozRequestAnimationFrame) {
            this.cancelAnimationFrame = root.mozCancelAnimationFrame.bind(root);
            this.requestAnimationFrame = root.mozRequestAnimationFrame.bind(root);
        }
        else if (root.webkitRequestAnimationFrame) {
            this.cancelAnimationFrame = root.webkitCancelAnimationFrame.bind(root);
            this.requestAnimationFrame = root.webkitRequestAnimationFrame.bind(root);
        }
        else if (root.msRequestAnimationFrame) {
            this.cancelAnimationFrame = root.msCancelAnimationFrame.bind(root);
            this.requestAnimationFrame = root.msRequestAnimationFrame.bind(root);
        }
        else if (root.oRequestAnimationFrame) {
            this.cancelAnimationFrame = root.oCancelAnimationFrame.bind(root);
            this.requestAnimationFrame = root.oRequestAnimationFrame.bind(root);
        }
        else {
            this.cancelAnimationFrame = root.clearTimeout.bind(root);
            this.requestAnimationFrame = function (cb) { return root.setTimeout(cb, 1000 / 60); };
        }
    }
    return RequestAnimationFrameDefinition;
}());
exports.RequestAnimationFrameDefinition = RequestAnimationFrameDefinition;
exports.AnimationFrame = new RequestAnimationFrameDefinition(root_1.root);
//# sourceMappingURL=AnimationFrame.js.map

Version data entries

49 entries across 49 versions & 4 rubygems

Version Path
govuk_publishing_components-17.8.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-17.7.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-17.6.1 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-17.6.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-17.5.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-17.4.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-17.3.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-17.2.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-17.1.1 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-17.1.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-17.0.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-16.29.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-16.28.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-16.27.1 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-16.27.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-16.26.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-16.25.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-16.24.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-16.23.0 node_modules/rxjs/util/AnimationFrame.js
govuk_publishing_components-16.22.0 node_modules/rxjs/util/AnimationFrame.js