| Conditions | 2 |
| Paths | 2 |
| Total Lines | 22 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | /** global: Analytics */ |
||
| 12 | init: function(options) { |
||
| 13 | this.options = options; |
||
| 14 | |||
| 15 | if (Analytics.GoogleVisualizationCalled == false) { |
||
|
|
|||
| 16 | Analytics.GoogleVisualizationCalled = true; |
||
| 17 | |||
| 18 | google.charts.load('current', { |
||
| 19 | packages: ['corechart', 'table'], |
||
| 20 | language: Analytics.chartLanguage, |
||
| 21 | mapsApiKey: Analytics.mapsApiKey, |
||
| 22 | callback: $.proxy(function() { |
||
| 23 | Analytics.GoogleVisualizationReady = true; |
||
| 24 | |||
| 25 | this.onAfterInit(); |
||
| 26 | |||
| 27 | this.onAfterFirstInit(); |
||
| 28 | }, this) |
||
| 29 | }); |
||
| 30 | } else { |
||
| 31 | this.onAfterInit(); |
||
| 32 | } |
||
| 33 | }, |
||
| 34 | |||
| 51 | }); |