Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

MapConstraint breaks for options.value containing "length" #14

Open
QuentinRoy opened this issue Aug 16, 2014 · 0 comments
Open

MapConstraint breaks for options.value containing "length" #14

QuentinRoy opened this issue Aug 16, 2014 · 0 comments

Comments

@QuentinRoy
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant