Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

DocumentCloud (by the creator of Backbone) is also using window-bound variables. Seems to work for them I suppose.


Yes, when you're in control of the page, it's nice to be able to have different parts of your app ready-to-hand. In our case, that means Documents, Notes, Projects, Accounts, Organizations, and so on...

If your "app" is going to be embedded as a part of someone else's page, then you have to be much more careful. The results cards in the sidebar here are only exposed through a single variable: "eg2012.Card":

http://www.nytimes.com/2012/02/08/us/politics/minnesota-colo...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: