Skip to content

Commit

Permalink
fix post call context
Browse files Browse the repository at this point in the history
  • Loading branch information
weilu committed Apr 25, 2014
1 parent a9d1365 commit 1130190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/localbitcoins.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ LocalBitcoins.prototype.request_post = function(path, extra_data, success_callba
var form = extra_data;
form.access_token = tokens.access_token;

post(path, form, function(data) {
post.call(this, path, form, function(data) {
success_callback(data, true);
}, function (xhr, ajaxOptions, thrownError) {
success_callback(xhr.responseText, false);
Expand Down Expand Up @@ -59,7 +59,7 @@ LocalBitcoins.prototype.login = function(username, password, success, error) {
username: username,
password: password
}
post("/oauth2/access_token/", data, function(data){
post.call(this, "/oauth2/access_token/", data, function(data){
tokens.access_token = data.access_token
success(data)
}, error)
Expand Down

0 comments on commit 1130190

Please sign in to comment.