Created
June 28, 2013 16:06
-
-
Save imsickofmaps/5885855 to your computer and use it in GitHub Desktop.
BookletState example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self.get_article = function(){ | |
| return "Lorem ipsum dolor sit amet, consectetur adipiscing elit."; | |
| }; | |
| self.add_state(new BookletState( | |
| "articles", | |
| "end_state", | |
| 3, | |
| self.get_article | |
| )); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Uncaught TypeError: Property 'page_text' of object #<BookletState> is not a function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment