TEA-ebook/teabook-open-reader — pull request #30 by noplay (2013-03-01 08:58:47+00:00)
Title: Fix error in generated  javascript from coffee

I don't know why it stop working for us but this lines start to stop working for us. When we have debug the generated javascript we found something strange.

The current code generate this:
new App.Models.ReadingPosition)({

But we think it should be:
new App.Models.ReadingPosition({

You can try the two syntax here:
http://coffeescript.org/#try:%23Invalid%20JS%0A%20%20%20%20%40model.set%20'readingPosition'%2C%20new%20App.Models.ReadingPosition%0A%20%20%20%20%20%20book_id%3A%20%40model.id%0A%20%20%20%20%20%20user_id%3A%20App.current_user.id%0A%0A%0A%23Valid%20JS%0A%0A%20%20%20%20%40model.set('readingPosition'%2C%20new%20App.Models.ReadingPosition(book_id%3A%20%40model.id%2C%20user_id%3A%20App.current_user.id))%0A%0A