function putDataset(fileName, dataset) {
  $('#save').text('saving');
  const xhr = new XMLHttpRequest();
  xhr.open('POST', '/dataset/proto/write/' + fileName);
  const binary = dataset.serializeBinary();
  xhr.onload = clean;
  xhr.send(binary);
}
/**
 * Uploads a serialized Dataset proto.
 * @param {string} fileName The name of the new dataset.
 * @param {!proto.ord.Dataset} dataset
 */
Uploads a serialized Dataset proto.
@param {string} fileName The name of the new dataset.
Uploads a serialized Dataset proto . @param { string } fileName The name of the new dataset .
function putDataset(fileName, dataset) {
  $('#save').text('saving');
  const xhr = new XMLHttpRequest();
  xhr.open('POST', '/dataset/proto/write/' + fileName);
  const binary = dataset.serializeBinary();
  xhr.onload = clean;
  xhr.send(binary);
}
function putDataset ( fileName , dataset ) { $ ( '#save' ) . text ( 'saving' ) ; const xhr = new XMLHttpRequest ( ) ; xhr . open ( 'POST' , '/dataset/proto/write/' + fileName ) ; const binary = dataset . serializeBinary ( ) ; xhr . onload = clean ; xhr . send ( binary ) ; }
Uploads a serialized Dataset proto.
Uploads a serialized Dataset proto .