Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ac29b5

Browse files
committed
Fix browser (IE) compatibility
1 parent d93ce51 commit 1ac29b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google-chart-loader.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<link rel="import" href="../polymer/polymer.html">
2-
<link rel="import" href="../promise-polyfill/promise-polyfill-lite.html">
2+
<link rel="import" href="../promise-polyfill/promise-polyfill.html">
33
<link rel="import" href="charts-loader.html">
44

55
<script>
@@ -87,7 +87,7 @@
8787
* @return {!Object} the namespace that contains the chart's constructor
8888
*/
8989
function namespaceForType(type) {
90-
return google[type.startsWith('md-') ? 'charts' : 'visualization'];
90+
return google[type.indexOf('md-') === 0 ? 'charts' : 'visualization'];
9191
}
9292

9393
/** @type {!Object<string, boolean>} set-like object of gviz packages to load */

0 commit comments

Comments
 (0)