Permalink
Browse files

Fix bad ref to scoreflex object in Scoreflex.SDK.submitTrun

  • Loading branch information...
1 parent 0153e8a commit ceaf257433228da4ecdf2f7abdefff77e66faa05 @capflam capflam committed Feb 19, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 scoreflex.js
View
@@ -1645,13 +1645,14 @@ var Scoreflex = function(clientId, clientSecret, useSandbox) {
}
if (!turnBody || turnBody.turnSequence === undefined) {
// request the turnSequence if we don't have it
+ var me = this;
this.getDetails({fields:"turn"}, {
onload: function() {
var json = this.responseJSON || {};
var turnSequence = (json.turn || {}).sequence || 0;
var newTurnBody = turnBody || {};
newTurnBody.turnSequence = turnSequence;
- this.submitTurn(newTurnBody, parameters, handlers);
+ me.submitTurn(newTurnBody, parameters, handlers);
},
onerror: (handlers || {}).onerror
});

0 comments on commit ceaf257

Please sign in to comment.