Skip to content

Instantly share code, notes, and snippets.

@lholmquist
Created September 21, 2012 18:50
Show Gist options
  • Save lholmquist/3763191 to your computer and use it in GitHub Desktop.
Save lholmquist/3763191 to your computer and use it in GitHub Desktop.
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 );
break;
...........
}
//doesn't actually remove from the UI. Stepping through the remove success callback, the valve is undefinded
//think we need to change it to, wdyt
switch( type ) {
case "project":
Projects.remove( options, { valves: ProjectsValve } );
break;
...........
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment