Skip to content

Commit e3dab0b

Browse files
committed
Merge branch 'Hotfixes/popup_arguments'
2 parents 1c0cec8 + 689e215 commit e3dab0b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

coffee/lib/oauth.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ module.exports = (window, document, jQuery, navigator) ->
145145
unless config.key
146146
defer?.reject new Error("OAuth object must be initialized")
147147
return callback(new Error("OAuth object must be initialized"))
148-
if arguments.length is 2
148+
if arguments.length is 2 and typeof opts == 'function'
149149
callback = opts
150150
opts = {}
151151
if cache.cacheEnabled(opts.cache)

dist/oauth.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ module.exports = function(window, document, jQuery, navigator) {
182182
}
183183
return callback(new Error("OAuth object must be initialized"));
184184
}
185-
if (arguments.length === 2) {
185+
if (arguments.length === 2 && typeof opts === 'function') {
186186
callback = opts;
187187
opts = {};
188188
}

0 commit comments

Comments
 (0)