Fix #34 by changing property setter logic as advised.
Merge pull request #40 from seancorfield/master

Fix #34