slightlyoff / cassowary.js

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

Correction for the test to work when hashCode == 0 #48

Closed Timshel closed 10 years ago

Timshel commented 10 years ago

Better correction to #45. The c._inc() function start at 0. the result of toString is then used instead of the hashCode but then :

On a Variable the toString is build using the current value, when the internal value change it's keyCode value change. Trying to fetch a stored Variable after a change of value will then fail (For example when doing solver.suggestValue)