fixes #1239
Merge pull request #1240 from ractivejs/gh-1239

fixes #1239