Skip to content

Commit e632cf0

Browse files
committed
Merge pull request #55 from amplitude/revert_multiple_apps
Revert multiple apps
2 parents 2f7fa7b + 829dc8d commit e632cf0

18 files changed

+1375
-3666
lines changed

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
## Unreleased
22

3-
* Add support for logging events to multiple Amplitude apps. **Note this is a major update, and may break backwards compatability.** See [Readme](https://github.com/amplitude/Amplitude-Javascript#300-update-and-logging-events-to-multiple-amplitude-apps) for details.
43
* Fix bug where saveReferrer throws exception if sessionStorage is disabled.
54
* Log messages with a try/catch to support IE 8.
65
* Validate event properties during logEvent and initialization before sending request.
76
* Add instructions for proper integration with RequireJS.
8-
* Init callback now passes the Amplitude instance as an argument to the callback function.
97

108
## 2.9.0 (January 15, 2016)
119

README.md

Lines changed: 34 additions & 106 deletions
Large diffs are not rendered by default.

amplitude-segment-snippet.min.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
(function(e,t){var n=e.amplitude||{_q:[],_iq:{}};var r=function(){this._q=[];return this;
1+
(function(e,t){var n=e.amplitude||{_q:[]};var r=function(){this._q=[];return this;
22
};function i(e){r.prototype[e]=function(){this._q.push([e].concat(Array.prototype.slice.call(arguments,0)));
3-
return this}}var s=["add","append","clearAll","set","setOnce","unset"];for(var o=0;o<s.length;o++){
4-
i(s[o])}n.Identify=r;var a=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties"];
3+
return this}}var o=["add","append","clearAll","set","setOnce","unset"];for(var s=0;s<o.length;s++){
4+
i(o[s])}n.Identify=r;var a=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties"];
55
function c(e){function t(t){e[t]=function(){e._q.push([t].concat(Array.prototype.slice.call(arguments,0)));
6-
}}for(var n=0;n<a.length;n++){t(a[n])}}c(n);n.getInstance=function(e){e=(!e||e.length===0?"$default_instance":e).toLowerCase();
7-
if(!n._iq.hasOwnProperty(e)){n._iq[e]={_q:[]};c(n._iq[e])}return n._iq[e]};e.amplitude=n;
8-
})(window,document);
6+
}}for(var n=0;n<a.length;n++){t(a[n])}}c(n);e.amplitude=n})(window,document);

amplitude-snippet.min.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
(function(e,t){var n=e.amplitude||{_q:[],_iq:{}};var r=t.createElement("script");r.type="text/javascript";
2-
r.async=true;r.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.9.0-min.gz.js";
1+
(function(e,t){var n=e.amplitude||{_q:[]};var r=t.createElement("script");r.type="text/javascript";
2+
r.async=true;r.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.9.1-min.gz.js";
33
r.onload=function(){e.amplitude.runQueuedFunctions()};var i=t.getElementsByTagName("script")[0];
4-
i.parentNode.insertBefore(r,i);var s=function(){this._q=[];return this};function a(e){
4+
i.parentNode.insertBefore(r,i);var s=function(){this._q=[];return this};function o(e){
55
s.prototype[e]=function(){this._q.push([e].concat(Array.prototype.slice.call(arguments,0)));
6-
return this}}var o=["add","append","clearAll","set","setOnce","unset"];for(var c=0;c<o.length;c++){
7-
a(o[c])}n.Identify=s;var u=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties"];
6+
return this}}var a=["add","append","clearAll","set","setOnce","unset"];for(var c=0;c<a.length;c++){
7+
o(a[c])}n.Identify=s;var u=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties"];
88
function l(e){function t(t){e[t]=function(){e._q.push([t].concat(Array.prototype.slice.call(arguments,0)));
9-
}}for(var n=0;n<u.length;n++){t(u[n])}}l(n);n.getInstance=function(e){e=(!e||e.length===0?"$default_instance":e).toLowerCase();
10-
if(!n._iq.hasOwnProperty(e)){n._iq[e]={_q:[]};l(n._iq[e])}return n._iq[e]};e.amplitude=n;
11-
})(window,document);
9+
}}for(var n=0;n<u.length;n++){t(u[n])}}l(n);e.amplitude=n})(window,document);

0 commit comments

Comments
 (0)