Created
August 9, 2015 14:04
-
-
Save ahirschberg/0e7e9b3c40287155b767 to your computer and use it in GitHub Desktop.
Shows how old args keys could sometimes get left over in the code and cause confusion later on as to what was expected during instantiation.
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 SearchResultsPageGenerator(args) { | |
'use strict'; | |
var httpRequestHandler = args.httpRequestHandler, | |
noLongerNeededObj = args.noLongerNeededObj, // never referenced, always undefined | |
sr_chapters_data_handle = args.sr_chapters_data_handle; | |
// do stuff ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment