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
{{ message }}
This repository has been archived by the owner on May 15, 2023. It is now read-only.
MapConstraint breaks when created with a value parameter containing "length".
The reason is that it uses the each function to create the options.keys and options.values arrays from options.value, but each treats any object containing a "length" property as an array.
As a result option.keys ends up with integers ranging from 0 to options.value["length"] and option.values is filled up of undefined.
The text was updated successfully, but these errors were encountered:
MapConstraint breaks when created with a value parameter containing "length".
The reason is that it uses the
each
function to create theoptions.keys
andoptions.values
arrays fromoptions.value
, buteach
treats any object containing a "length" property as an array.As a result
option.keys
ends up with integers ranging from 0 tooptions.value["length"]
andoption.values
is filled up ofundefined
.The text was updated successfully, but these errors were encountered: