Closed saebekassebil closed 11 years ago
When using the TeoriaInterval#direction(dir) is a setter, the direction is toggled no matter what you set the direction to. That is, it is not idempotent which it ought to be.
TeoriaInterval#direction(dir)
Example:
var m3 = teoria.note('a3').interval(teoria.note('c4')); console.log(m3.direction()); // -> 'up' m3.direction('up'); console.log(m3.direction()); // -> 'down' ?!
When using the
TeoriaInterval#direction(dir)
is a setter, the direction is toggled no matter what you set the direction to. That is, it is not idempotent which it ought to be.Example: