From 711a36fd3a1f6c00ccd1c70c229805d6b165c5f3 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 8 Jan 2016 12:42:29 -0800 Subject: [PATCH] Get rid of google charts errors. --- static/externs.js | 14 ++++++++++++++ static/verify.sh | 1 + 2 files changed, 15 insertions(+) create mode 100644 static/externs.js diff --git a/static/externs.js b/static/externs.js new file mode 100644 index 0000000..b5caf3e --- /dev/null +++ b/static/externs.js @@ -0,0 +1,14 @@ +/* Externs that we don't get from real sources are here */ + +google.charts = {}; + +/** + * @param {function()} callback + */ +google.charts.setOnLoadCallback = function(callback) {}; + +/** + * @param {Node} container + * @constructor + */ +google.visualization.Timeline = function(container) {}; diff --git a/static/verify.sh b/static/verify.sh index 88a5184..afbcaa3 100755 --- a/static/verify.sh +++ b/static/verify.sh @@ -10,6 +10,7 @@ curl \ --data warning_level=verbose \ --data externs_url=https://www.cosmopolite.org/externs/cosmopolite.js \ --data externs_url=https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/google_visualization_api.js \ + --data-urlencode "js_externs@externs.js" \ --data-urlencode "js_code@babystats.js" \ http://closure-compiler.appspot.com/compile | ./prettyprint.py