You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected behavior?
Looping over objects should be done using Object.keys.forEach..., and not with a for-in loop.
Looping over objects with a for in loop will include properties that are inherited through the prototype chain. This behavior can lead to unexpected items in your for loop.
More details can be found here.
Are you able to attach screenshots, screencasts or a live demo?
[ ] Yes (attach)
[-] No
The text was updated successfully, but these errors were encountered:
This caused a bug in our application since we are using some package that adds properties to the object prototype.
When trying to initialize a grapes.js editor we get an error in the console.
Version: 0.16.22
Are you able to reproduce the bug from the demo?
[-] Yes
[ ] No
What is the expected behavior?
Looping over objects should be done using
Object.keys.forEach...
, and not with a for-in loop.Looping over objects with a for in loop will include properties that are inherited through the prototype chain. This behavior can lead to unexpected items in your for loop.
More details can be found here.
Are you able to attach screenshots, screencasts or a live demo?
[ ] Yes (attach)
[-] No
The text was updated successfully, but these errors were encountered: