Skip to content

Instantly share code, notes, and snippets.

View lholmquist's full-sized avatar

Lucas Holmquist lholmquist

View GitHub Profile
@lholmquist
lholmquist / datamanager_remove
Created September 21, 2012 18:50
datamanger remove
///Already Updated https://github.com/aerogear/TODO/commit/9af0ee9f5f155c76d359e6d55d6e46d25d4a31de
//extracted from app.js of TODO
//Remove
switch( type ) {
case "project":
options.valves = ProjectsValve;
Projects.remove( options );
@lholmquist
lholmquist / gist:3757334
Created September 20, 2012 17:48
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