apigee/apigee-javascript-sdk — pull request #12 by amuramoto (2013-08-27 21:52:37+00:00)
Title: Changed my_books to global scope, removed geo query, changed title to be...

... saved in 'name' property

Three changes:

- Moved my_books var to global scope. Current version was throwing an error because creatbooks() could not access the my_books Collection object.

-Removed the geolocation query from my_books instantiation. The rest of the app does not use geo, and for new users, they will get an empty result set because of this, which can create confusion.

-The val of 'title-field' is now saved in 'name' property not 'title' property. The createEntity method relies on the SDK fetch() method, which requires all entities to have a 'name' or 'username' property, which is causing the create to fail in this app.