Skip to content

Commit

Permalink
Merge pull request #256 from jpmorganchase/load-options
Browse files Browse the repository at this point in the history
Added options dict to viewer load method
  • Loading branch information
texodus authored Oct 3, 2018
2 parents 0313e97 + eb451ae commit 94e983d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/perspective-viewer/src/js/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -1326,14 +1326,10 @@ class View extends ViewPrivate {
* const tbl = perspective.table("x,y\n1,a\n2,b");
* my_viewer.load(tbl);
*/
load(data) {
load(data, options) {
try {
data = data.trim();
} catch (e) {}
let options = {};
if (this.getAttribute("index")) {
options.index = this.getAttribute("index");
}
let table;
if (data.hasOwnProperty("_name")) {
table = data;
Expand Down

0 comments on commit 94e983d

Please sign in to comment.