Skip to content

Commit

Permalink
Merge pull request #121 from brianjmiller/master
Browse files Browse the repository at this point in the history
Correct .log calls in callback wrappers
  • Loading branch information
brianjmiller committed Nov 12, 2015
2 parents b7d0b9c + 864592b commit 9a27e6a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/LRS.js
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,8 @@ TinCan client library
requestCfg = {},
requestResult,
callbackWrapper,
requestHeaders;
requestHeaders,
self = this;

requestHeaders = cfg.requestHeaders || {};

Expand Down Expand Up @@ -920,7 +921,7 @@ TinCan client library
try {
result.contents = JSON.parse(result.contents);
} catch (ex) {
this.log("retrieveState - failed to deserialize JSON: " + ex);
self.log("retrieveState - failed to deserialize JSON: " + ex);
}
}
}
Expand Down Expand Up @@ -1214,7 +1215,8 @@ TinCan client library
var requestCfg = {},
requestResult,
callbackWrapper,
requestHeaders;
requestHeaders,
self = this;

requestHeaders = cfg.requestHeaders || {};

Expand Down Expand Up @@ -1266,7 +1268,7 @@ TinCan client library
try {
result.contents = JSON.parse(result.contents);
} catch (ex) {
this.log("retrieveActivityProfile - failed to deserialize JSON: " + ex);
self.log("retrieveActivityProfile - failed to deserialize JSON: " + ex);
}
}
}
Expand Down Expand Up @@ -1511,7 +1513,8 @@ TinCan client library
var requestCfg = {},
requestResult,
callbackWrapper,
requestHeaders;
requestHeaders,
self = this;

requestHeaders = cfg.requestHeaders || {};

Expand Down Expand Up @@ -1569,7 +1572,7 @@ TinCan client library
try {
result.contents = JSON.parse(result.contents);
} catch (ex) {
this.log("retrieveAgentProfile - failed to deserialize JSON: " + ex);
self.log("retrieveAgentProfile - failed to deserialize JSON: " + ex);
}
}
}
Expand Down

0 comments on commit 9a27e6a

Please sign in to comment.