Skip to content

Instantly share code, notes, and snippets.

@ahirschberg
Created August 9, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahirschberg/0e7e9b3c40287155b767 to your computer and use it in GitHub Desktop.
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.
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