Skip to content

Commit

Permalink
Update affirmWidget.js (#118)
Browse files Browse the repository at this point in the history
As it has been reported already on the issue #53, the removal of the "jquery-ui-modules/widget" RequireJS dependency through the commit 0acaadd is causing "Uncaught TypeError: $.widget is not a function" errors, when the jquery-ui-modules/widget dependency is not already loaded. Due to the fact that the jquery-ui-modules/widget dependency may be loaded by other scripts, this error may not be easily reproducible, depending on the order in which the JavaScript files have been loaded.

This is causing JavaScript errors on product pages, which in our case was preventing the "ADD TO WISH LIST" button from working.

Similarly to others, we had to develop a custom patch to address this issue.

Please revert these changes as soon as possible.
  • Loading branch information
nicolasddev authored May 8, 2024
1 parent 5039307 commit efd0f9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion view/frontend/web/js/affirmWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
/*jshint jquery:true*/
define([
"jquery",
"Astound_Affirm/js/model/aslowas"
"Astound_Affirm/js/model/aslowas",
"jquery-ui-modules/widget"
], function ($, aslowas) {

"use strict"
Expand Down

0 comments on commit efd0f9b

Please sign in to comment.