Skip to content

Instantly share code, notes, and snippets.

@lholmquist
Created September 20, 2012 17:48
Show Gist options
  • Save lholmquist/3757334 to your computer and use it in GitHub Desktop.
Save lholmquist/3757334 to your computer and use it in GitHub Desktop.
aerogear Datamanager recordId bug?
//this is extracted from app.js from my modified TODO app
//First Create a datamanager
var dm = aerogear.dataManager([ "tasks", "tags", "projects"]),
TasksValve = dm.valves[ "tasks" ],
ProjectsValve = dm.valves[ "projects" ],
TagsValve = dm.valves[ "tags" ];
//at this point if you do
console.log(TasksValve.recordId) ==> undefinded
//Add a new one
dm.add( "other" );
console.log( dm.valves.other.recordId ) ==> "id"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment