Created
May 1, 2017 21:06
-
-
Save djsmith42/018a7c6880959729d3b93e7009c2fc35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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