Fix #1036
Merge pull request #1040 from ractivejs/gh-1036

Fix #1036