From da63e127afe67f70a307b45c28b8d1aff3a11144 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 27 Dec 2016 10:03:49 -0500 Subject: [PATCH] promise polyfill --- auto_tests/tests/xhr.js | 2 ++ scripts/build.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/auto_tests/tests/xhr.js b/auto_tests/tests/xhr.js index 90712fa..ba06e61 100644 --- a/auto_tests/tests/xhr.js +++ b/auto_tests/tests/xhr.js @@ -14,6 +14,8 @@ import Dygraph from '../../src/dygraph'; import Util from './Util'; +import 'core-js/es6/promise'; + function dygraphPromise(div, data, opts) { return new Promise((resolve, reject) => { const g = new Dygraph(div, data, opts); diff --git a/scripts/build.sh b/scripts/build.sh index 9374a9c..35159e4 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -34,7 +34,7 @@ browserify \ # Create dist/dygraph.tmp.js.map cat dist/dygraph.tmp.js | exorcist --base . dist/dygraph.tmp.js.map > /dev/null -header='/*! @license Copyright 2014 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */' +header='/*! @license Copyright 2017 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */' # Create dist/dygraph.js.min{,.map} uglifyjs --compress --mangle \ -- 2.7.4