slightlyoff / cassowary.js

Cassowary/JS, better, faster, future-ready
Other
1.69k stars 107 forks source link

Solver - insertErrorVar look up on incorrect value #65

Closed ruby0x1 closed 9 years ago

ruby0x1 commented 9 years ago

Ran into a type error here when porting, it is fetching from a Map of Constraint:Set and instead was passing in an AbstractVariable. This seems accidental - if you notice what would happen is every single time a new set is created (because the result is never found), this also probably makes garbage as a side effect.