Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d93ce51 commit 1ac29b5Copy full SHA for 1ac29b5
google-chart-loader.html
@@ -1,5 +1,5 @@
1
<link rel="import" href="../polymer/polymer.html">
2
-<link rel="import" href="../promise-polyfill/promise-polyfill-lite.html">
+<link rel="import" href="../promise-polyfill/promise-polyfill.html">
3
<link rel="import" href="charts-loader.html">
4
5
<script>
@@ -87,7 +87,7 @@
87
* @return {!Object} the namespace that contains the chart's constructor
88
*/
89
function namespaceForType(type) {
90
- return google[type.startsWith('md-') ? 'charts' : 'visualization'];
+ return google[type.indexOf('md-') === 0 ? 'charts' : 'visualization'];
91
}
92
93
/** @type {!Object<string, boolean>} set-like object of gviz packages to load */
0 commit comments