Permalink
Browse files

Instantiate ChallengeInstance with 'new' operator

  • Loading branch information...
1 parent 61a6015 commit 7a14f6bcea77023899b5bb81ec4d2ef2c931af46 @capflam capflam committed Feb 19, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 scoreflex.js
View
2 scoreflex.js
@@ -1650,7 +1650,7 @@ var Scoreflex = function(clientId, clientSecret, useSandbox) {
* @memberof module:Scoreflex.SDK.Challenges
*/
var get = function(challengeInstanceId, challengeConfigId) {
- return ChallengeInstance(challengeInstanceId, challengeConfigId);
+ return new ChallengeInstance(challengeInstanceId, challengeConfigId);
};
return {

0 comments on commit 7a14f6b

Please sign in to comment.