-
-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iterating over functions in opcheckot.js #42
Labels
Comments
tmotyl
added a commit
to macopedia/magento-lts
that referenced
this issue
Oct 11, 2015
This patch make use of the prototype's ``each`` function to iterate over dom elements instead of all object properties and functions. fixes OpenMage#42
thanks! |
Flyingmana
pushed a commit
to Flyingmana/magento-lts
that referenced
this issue
Oct 18, 2016
This patch make use of the prototype's ``each`` function to iterate over dom elements instead of all object properties and functions. fixes OpenMage#42
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Nov 27, 2017
This patch makes use of the prototype's ``each`` function to iterate over dom elements instead of all object properties and functions. fixes OpenMage#42
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Dec 6, 2017
…ctions This patch makes use of the prototype's ``each`` function to iterate over dom elements instead of all object properties and functions. fixes OpenMage#42
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Feb 28, 2018
…ctions This patch makes use of the prototype's ``each`` function to iterate over dom elements instead of all object properties and functions. fixes OpenMage#42
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Jul 17, 2018
…ctions This patch makes use of the prototype's ``each`` function to iterate over dom elements instead of all object properties and functions. fixes OpenMage#42
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Sep 19, 2018
…ctions This patch makes use of the prototype's ``each`` function to iterate over dom elements instead of all object properties and functions. fixes OpenMage#42
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Feb 14, 2019
…ctions This patch makes use of the prototype's ``each`` function to iterate over dom elements instead of all object properties and functions. fixes OpenMage#42
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Apr 1, 2019
…ctions This patch makes use of the prototype's ``each`` function to iterate over dom elements instead of all object properties and functions. fixes OpenMage#42
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Aug 22, 2019
…ctions This patch makes use of the prototype's ``each`` function to iterate over dom elements instead of all object properties and functions. fixes OpenMage#42
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Oct 25, 2019
…ctions This patch makes use of the prototype's ``each`` function to iterate over dom elements instead of all object properties and functions. fixes OpenMage#42
edannenberg
pushed a commit
to edannenberg/magento-lts
that referenced
this issue
Aug 20, 2020
…ctions This patch makes use of the prototype's ``each`` function to iterate over dom elements instead of all object properties and functions. fixes OpenMage#42
randallelliott714
added a commit
to randallelliott714/magento
that referenced
this issue
Oct 18, 2022
This patch make use of the prototype's ``each`` function to iterate over dom elements instead of all object properties and functions. fixes OpenMage/magento-lts#42
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in opcheckout.js https://github.com/OpenMage/magento-lts/blob/1.9.2.1/skin/frontend/base/default/js/opcheckout.js#L93 the for loop iterates over all object properties, including functions.
If one of the properties is undefined, the script will break, and it will NOT be possible to proceed with checkout.
This happend to us once livechat vendor has error in their js (hosted by them) which added an undefined property to dom objects. And it broke the chekout.
How it should be solved:
we should not loop over all object properties, but only over DOM nodes.
The text was updated successfully, but these errors were encountered: