Skip to content

Commit aa03c35

Browse files
author
Daniel Jih
committed
fix amplitude tests, pass instance to init callback
1 parent 66f7c5d commit aa03c35

File tree

5 files changed

+2378
-68
lines changed

5 files changed

+2378
-68
lines changed

amplitude.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ AmplitudeClient.prototype.init = function init(apiKey, opt_userId, opt_config, o
598598
utils.log(e);
599599
} finally {
600600
if (type(opt_callback) === 'function') {
601-
opt_callback();
601+
opt_callback(this);
602602
}
603603
}
604604
};

amplitude.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.

src/amplitude-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ AmplitudeClient.prototype.init = function init(apiKey, opt_userId, opt_config, o
120120
utils.log(e);
121121
} finally {
122122
if (type(opt_callback) === 'function') {
123-
opt_callback();
123+
opt_callback(this);
124124
}
125125
}
126126
};

0 commit comments

Comments
 (0)