fix infinite loop (thanks to Kevin Chiu / KevinC1118, see Pull Request #3)
Merge branch 'master' of https://github.com/readium/readium-shared-js

Conflicts:
	js/models/spine.js