assets/js/twilio.js
/**
 * Create a new Device instance and bind its functions to the Device static. This maintains
 * backwards compatibility for the Device singleton behavior and will be removed in the next
 * breaking release.
 */
Create a new Device instance and bind its functions to the Device static. This maintains
backwards compatibility for the Device singleton behavior and will be removed in the next
breaking release.
Create a new Device instance and bind its functions to the Device static . This maintains backwards compatibility for the Device singleton behavior and will be removed in the next breaking release .
function bindSingleton() {
    instance = new device_1.default();
    Object.getOwnPropertyNames(device_1.default.prototype)
        .concat(Object.getOwnPropertyNames(events_1.EventEmitter.prototype))
        .filter(function (prop) {
        return typeof device_1.default.prototype[prop] === 'function';
    })
        .filter(function (prop) { return prop !== 'destroy'; })
        .forEach(function (prop) {
        device_1.default[prop] = device_1.default.prototype[prop].bind(instance);
    });
}
function bindSingleton ( ) { instance = new device_1 . default ( ) ; Object . getOwnPropertyNames ( device_1 . default . prototype ) . concat ( Object . getOwnPropertyNames ( events_1 . EventEmitter . prototype ) ) . filter ( function ( prop ) { return typeof device_1 . default . prototype [ prop ] === 'function' ; } ) . filter ( function ( prop ) { return prop !== 'destroy' ; } ) . forEach ( function ( prop ) { device_1 . default [ prop ] = device_1 . default . prototype [ prop ] . bind ( instance ) ; } ) ; }
Create a new Device instance and bind its functions to the Device static.
Create a new Device instance and bind its functions to the Device static .