This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 6bfa1b6d1ed1cea900fcb84fad6237a96d82beb4 Author: Kevin Morin <morin@codelutin.com> Date: Thu May 18 15:51:38 2017 +0200 utilisation de la lib Object.values pour les navigateurs ne supportant pas encore cette function native js --- pollen-ui-riot-js/package.json | 1 + pollen-ui-riot-js/src/main/web/js/Error.js | 5 +++++ pollen-ui-riot-js/src/main/web/js/VoterListService.js | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/pollen-ui-riot-js/package.json b/pollen-ui-riot-js/package.json index 750102a..eccde60 100644 --- a/pollen-ui-riot-js/package.json +++ b/pollen-ui-riot-js/package.json @@ -46,6 +46,7 @@ "font-awesome": "4.7.0", "moment": "^2.17.1", "nprogress": "^0.2.0", + "object.values": "^1.0.4", "qrcode-generator": "^1.2.0", "remarkable": "^1.7.1", "riot": "3.3.2", diff --git a/pollen-ui-riot-js/src/main/web/js/Error.js b/pollen-ui-riot-js/src/main/web/js/Error.js index 775a6c2..4ac129e 100644 --- a/pollen-ui-riot-js/src/main/web/js/Error.js +++ b/pollen-ui-riot-js/src/main/web/js/Error.js @@ -18,6 +18,11 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * #L% */ +let values = require('object.values'); +if (!Object.values) { + values.shim(); +} + class Error { constructor(e, timeout) { diff --git a/pollen-ui-riot-js/src/main/web/js/VoterListService.js b/pollen-ui-riot-js/src/main/web/js/VoterListService.js index 9d923ef..3eb36cf 100644 --- a/pollen-ui-riot-js/src/main/web/js/VoterListService.js +++ b/pollen-ui-riot-js/src/main/web/js/VoterListService.js @@ -1,5 +1,9 @@ let singleton = require("./Singleton"); let FetchService = require("./FetchService"); +let values = require('object.values'); +if (!Object.values) { + values.shim(); +} class VoterListService extends FetchService { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.