diff options
author | Paladox <thomasmulhall410@yahoo.com> | 2016-09-10 18:33:35 +0100 |
---|---|---|
committer | Paladox none <thomasmulhall410@yahoo.com> | 2016-09-13 15:14:32 +0000 |
commit | 914cf06b2722ee957b6a1b5d04bc914a6a25d0d2 (patch) | |
tree | 9b316d2a039e54c366a50b1e0eb614900684fee5 | |
parent | ef353fedd20069b79844e2d2122b926a80685a46 (diff) |
Add es6-promise for Internet Explorer
Plus it is required by the fetch polyfill, see
https://github.com/github/fetch#installation
Also see https://github.com/github/fetch/issues/114
This fixes the undefined Promise error in internet explorer 11, due to
Promises not being supported in Internet explorer and other browsers.
See http://caniuse.com/#feat=promises
Bug: Issue 4308
Change-Id: I93df9c89a9a98059292038dffe1655c3f4d503c5
-rw-r--r-- | lib/BUCK | 1 | ||||
-rw-r--r-- | lib/LICENSE-es6-promise | 19 | ||||
-rw-r--r-- | lib/js/BUCK | 8 | ||||
-rw-r--r-- | polygerrit-ui/BUCK | 1 | ||||
-rw-r--r-- | polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.html | 1 |
5 files changed, 30 insertions, 0 deletions
@@ -13,6 +13,7 @@ define_license(name = 'clippy') define_license(name = 'codemirror-minified') define_license(name = 'codemirror-original') define_license(name = 'diffy') +define_license(name = 'es6-promise') define_license(name = 'fetch') define_license(name = 'h2') define_license(name = 'highlightjs') diff --git a/lib/LICENSE-es6-promise b/lib/LICENSE-es6-promise new file mode 100644 index 0000000000..954ec5992d --- /dev/null +++ b/lib/LICENSE-es6-promise @@ -0,0 +1,19 @@ +Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/lib/js/BUCK b/lib/js/BUCK index 71b14747fe..30c687bf49 100644 --- a/lib/js/BUCK +++ b/lib/js/BUCK @@ -100,6 +100,14 @@ bower_component( ) bower_component( + name = 'es6-promise', + package = 'stefanpenner/es6-promise', + version = '3.2.2', + license = 'es6-promise', + sha1 = 'de2eda2fdd744994180a0df03d2b5a936fcb1e70', +) + +bower_component( name = 'fetch', package = 'fetch', version = '1.0.0', diff --git a/polygerrit-ui/BUCK b/polygerrit-ui/BUCK index e26e40c560..80f9f29f17 100644 --- a/polygerrit-ui/BUCK +++ b/polygerrit-ui/BUCK @@ -3,6 +3,7 @@ include_defs('//lib/js.defs') bower_components( name = 'polygerrit_components', deps = [ + '//lib/js:es6-promise', '//lib/js:fetch', '//lib/js:highlightjs', '//lib/js:iron-autogrow-textarea', diff --git a/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.html b/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.html index 72ae4e4c6c..59e46cc8a4 100644 --- a/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.html +++ b/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.html @@ -15,6 +15,7 @@ limitations under the License. --> <link rel="import" href="../../../bower_components/polymer/polymer.html"> +<script src="../../../bower_components/es6-promise/dist/es6-promise.js"></script> <script src="../../../bower_components/fetch/fetch.js"></script> <dom-module id="gr-rest-api-interface"> |