Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netflix OAuth Module #25

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed function execution.
  • Loading branch information
slickplaid committed Jun 28, 2011
commit 2af742e57071faed315c979bf002519251f71e43
18 changes: 10 additions & 8 deletions lib/modules/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,16 @@ everyModule.submodule('oauth')

if (additionalParams) for (var k in additionalParams) {
param = additionalParams[k];
if ('function' === typeof param) {
// e.g., for facebook module, param could be
// function () {
// return this._scope && this.scope();
// }
additionalParams[k] = // cache the function call
param = param.call(this);
}
// Leaving this in in case needed in the future.
// Caused problems because req object wasn't passed to this function.
//if ('function' === typeof param) {
// // e.g., for facebook module, param could be
// // function () {
// // return this._scope && this.scope();
// // }
// additionalParams[k] = // cache the function call
// param = param.call(this);
//}
//if ('function' === typeof param) {
// // this.scope() itself could be a function
// // to allow for dynamic scope determination - e.g.,
Expand Down