Skip to content

Instantly share code, notes, and snippets.

@djsmith42
Created May 1, 2017 21:06
Show Gist options
  • Save djsmith42/018a7c6880959729d3b93e7009c2fc35 to your computer and use it in GitHub Desktop.
Save djsmith42/018a7c6880959729d3b93e7009c2fc35 to your computer and use it in GitHub Desktop.
function createFoo(foo) {
// 3rd party lib
return newFooId
}
function deleteFoo(fooId) {
// 3rd party lib
}
function doTheThing() {
var foo = {
name: "Thing",
onClick: function() {
deleteFoo(fooId)
}
}
var fooId = createFoo(foo)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment