minor formatting

This commit is contained in:
Cora Johnson-Roberson 2017-02-10 09:22:31 -05:00
parent d00919a26c
commit 2eebfbf2f7

View File

@ -336,7 +336,7 @@ ClusteringDialog.prototype._onApplyReCluster = function() {
}; };
ClusteringDialog.prototype._onExportCluster = function() { ClusteringDialog.prototype._onExportCluster = function() {
var self = this; var self = this;
self._export(); self._export();
}; };
@ -391,12 +391,12 @@ ClusteringDialog.prototype._export = function() {
'timeStamp': timeStamp, 'timeStamp': timeStamp,
'clusterMethod': this._method, 'clusterMethod': this._method,
'keyingFunction': this._function, 'keyingFunction': this._function,
'clusters': clusters, 'clusters': clusters
}; };
var data = "text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(obj)); var data = "text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(obj));
var link=document.createElement('a'); var link = document.createElement('a');
link.href='data:' + data; link.href = 'data:' + data;
link.download="clusters_" + projectName + "_" + columnName + "_" + timeStamp + ".json"; link.download = "clusters_" + projectName + "_" + columnName + "_" + timeStamp + ".json";
link.click(); link.click();
}; };