Skip to content

Commit

Permalink
Merge pull request #197 from timelyportfolio/master
Browse files Browse the repository at this point in the history
fix so that dygraph is actually available from outside
  • Loading branch information
Petr Shevtsov authored Jul 11, 2018
2 parents acca296 + b1834d8 commit e2bc58e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/htmlwidgets/dygraphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ HTMLWidgets.widget({
}

// create the dygraph and add it to it's group (if any)
dygraph = new Dygraph(el, attrs.file, attrs);
dygraph = thiz.dygraph = new Dygraph(el, attrs.file, attrs);
dygraph.userDateWindow = attrs.dateWindow;
if (x.group != null)
groups[x.group].push(dygraph);
Expand Down Expand Up @@ -777,7 +777,7 @@ HTMLWidgets.widget({
},

// export dygraph so other code can get a hold of it
dygraph: dygraph
dygraph: null

};
},
Expand Down

0 comments on commit e2bc58e

Please sign in to comment.