vendor/opentok.js
function (name, callback) {
      capabilities[name] = function() {
        var result = callback();
        capabilities[name] = function() {
          return result;
        };

        return result;
      };
    }
function (name, callback) {
      capabilities[name] = function() {
        var result = callback();
        capabilities[name] = function() {
          return result;
        };

        return result;
      };
    }
function ( name , callback ) { capabilities [ name ] = function ( ) { var result = callback ( ) ; capabilities [ name ] = function ( ) { return result ; } ; return result ; } ; }
Wrap up a capability test in a function that memorises the result.
Wrap up a capability test in a function that memorises the result .