[REF] theme_common: remove underscorejs usages

After this commit, usages of underscore js functions
has been replaced by native javascript function.

task-3246238

closes odoo/design-themes#662

Related: odoo/odoo#125889
Signed-off-by: Samuel Degueldre (sad) <sad@odoo.com>
This commit is contained in:
Pierre Pulinckx (pipu)
2023-06-26 09:26:29 +00:00
parent fb611453ee
commit 06dda77753
@@ -7,14 +7,14 @@ publicWidget.registry.s_showcase_slider = publicWidget.Widget.extend({
selector: ".s_showcase_slider",
start: function () {
_.defer(this.bindEvents.bind(this)); // FIXME delayed to counter a web_editor bug which off all click event
setTimeout(this.bindEvents.bind(this), 0); // FIXME delayed to counter a web_editor bug which off all click event
this.createPagination();
return this._super.apply(this, arguments);
},
destroy: function () {
this._super.apply(this, arguments);
_.defer(this.unbindEvents.bind(this)); // FIXME delayed to counter a web_editor bug which off all click event
setTimeout(this.unbindEvents.bind(this), 0); // FIXME delayed to counter a web_editor bug which off all click event
this.destroyPagination();
this.$el.removeClass("active");
},