Skip to content

Commit d82372f

Browse files
committed
fixed .popup promise for cache usage
1 parent 13c2241 commit d82372f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oauth-js",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"main": "dist/oauth.min.js",
55
"description": "OAuth that just works",
66
"license": "apache2",

coffee/lib/oauth.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ module.exports = (window, document, jQuery, navigator) ->
156156
if callback
157157
return callback(null, res)
158158
else
159-
return
159+
return defer.promise()
160160
unless opts.state
161161
opts.state = sha1.create_hash()
162162
opts.state_type = "client"

dist/oauth.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module.exports = {
33
oauthd_url: "https://oauth.io",
44
oauthd_api: "https://oauth.io/api",
5-
version: "web-0.2.0",
5+
version: "web-0.2.1",
66
options: {}
77
};
88

@@ -197,7 +197,7 @@ module.exports = function(window, document, jQuery, navigator) {
197197
if (callback) {
198198
return callback(null, res);
199199
} else {
200-
return;
200+
return defer.promise();
201201
}
202202
}
203203
}

dist/oauth.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)