Skip to content

Commit

Permalink
Added options dict to viewer load method
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed Oct 2, 2018
1 parent 2b249e2 commit eb451ae
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 eb451ae

Please sign in to comment.