From ae6b12148e0897f16e4e331b84deefa63bd9e434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Tue, 25 Sep 2018 17:30:14 +0100 Subject: [PATCH] new cleanup --- src/python/ripe_demo/static/js/ripe.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/python/ripe_demo/static/js/ripe.js b/src/python/ripe_demo/static/js/ripe.js index 9df02f473..615b167d1 100644 --- a/src/python/ripe_demo/static/js/ripe.js +++ b/src/python/ripe_demo/static/js/ripe.js @@ -48,7 +48,9 @@ ripe.assign = function(target) { }; ripe.build = function() { - return ripe.assign.apply(this, arguments); + const _arguments = Array.prototype.slice.call(arguments); + _arguments.unshift({}); + return ripe.assign.apply(this, _arguments); }; // eslint-disable-next-line no-use-before-define