src/components/avatar-replayer.js
function (url, binary, callback) {
    var data;
    var self = this;
    fileLoader.crossOrigin = 'anonymous';
    if (binary === true) {
      fileLoader.setResponseType('arraybuffer');
    }
    fileLoader.load(url, function (buffer) {
      if (binary === true) {
        data = self.loadStrokeBinary(buffer);
      } else {
        data = JSON.parse(buffer);
      }
      if (callback) { callback(data); }
    });
  }
function (url, binary, callback) {
    var data;
    var self = this;
    fileLoader.crossOrigin = 'anonymous';
    if (binary === true) {
      fileLoader.setResponseType('arraybuffer');
    }
    fileLoader.load(url, function (buffer) {
      if (binary === true) {
        data = self.loadStrokeBinary(buffer);
      } else {
        data = JSON.parse(buffer);
      }
      if (callback) { callback(data); }
    });
  }
function ( url , binary , callback ) { var data ; var self = this ; fileLoader . crossOrigin = 'anonymous' ; if ( binary === true ) { fileLoader . setResponseType ( 'arraybuffer' ) ; } fileLoader . load ( url , function ( buffer ) { if ( binary === true ) { data = self . loadStrokeBinary ( buffer ) ; } else { data = JSON . parse ( buffer ) ; } if ( callback ) { callback ( data ) ; } } ) ; }
XHR for data.
XHR for data .