Skip to content

Does not redraw when selection changes.#93

Merged
wesalvaro merged 1 commit intoGoogleWebComponents:masterfrom
wesalvaro:table-page
Mar 22, 2016
Merged

Does not redraw when selection changes.#93
wesalvaro merged 1 commit intoGoogleWebComponents:masterfrom
wesalvaro:table-page

Conversation

@wesalvaro
Copy link
Copy Markdown
Member

Fixes #92
Is more intelligent about how to handle selection changes and when to redraw the chart.

@wesalvaro
Copy link
Copy Markdown
Member Author

R: @ebidel

Comment thread google-chart.html
_typeChanged: function() {
this._chart = this._createChart();
this._chart = createChart(this.type, this.$.chartdiv)
.then(this._setupChart.bind(this));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

promises arent avail in ie 11. This will be a breaking change that we'll need to note...and bump the major versionn

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this caveat considering the polyfill? This element has been using iron-ajax to load data which makes use of promises (via the polyfill). It may not be native but it should work.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. That should be OK then. You should also really load the polyfill import in this component too. If iron-ajax is ever removed as the implementation, we'll still want it as a dependency. And add it to bower.json.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is in the imports but not in Bower. ;)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yea. Want to add it there for completeness.?

@ebidel
Copy link
Copy Markdown
Contributor

ebidel commented Mar 22, 2016

LGTM. Just the addition to bower.

Fixes GoogleWebComponents#92
Is more intelligent about how to handle selection changes and when to
redraw the chart.
wesalvaro added a commit that referenced this pull request Mar 22, 2016
Does not redraw when selection changes.
@wesalvaro wesalvaro merged commit 0020cd8 into GoogleWebComponents:master Mar 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants