@@ -110,7 +110,7 @@ <h1 class="page-title">Source: amplitude.js</h1>
110110
111111 // load deviceId and userId from input, or try to fetch existing value from cookie
112112 this.options.deviceId = (type(opt_config) === 'object' && type(opt_config.deviceId) === 'string' &&
113- !utils.isEmptyString(opt_config.deviceId) && opt_config.deviceId) || this.options.deviceId || UUID();
113+ !utils.isEmptyString(opt_config.deviceId) && opt_config.deviceId) || this.options.deviceId || UUID() + 'R' ;
114114 this.options.userId = (type(opt_userId) === 'string' && !utils.isEmptyString(opt_userId) && opt_userId) ||
115115 this.options.userId || null;
116116
@@ -490,7 +490,7 @@ <h1 class="page-title">Source: amplitude.js</h1>
490490 * @private
491491 */
492492Amplitude.prototype._getReferringDomain = function _getReferringDomain(referrer) {
493- if (utils.isEmpty (referrer)) {
493+ if (utils.isEmptyString (referrer)) {
494494 return null;
495495 }
496496 var parts = referrer.split('/');
@@ -1029,6 +1029,12 @@ <h1 class="page-title">Source: amplitude.js</h1>
10291029 this.setUserProperties(userProperties);
10301030};
10311031
1032+ /**
1033+ * Get the current version of Amplitude's Javascript SDK.
1034+ * @public
1035+ * @returns {number} version number
1036+ * @example var amplitudeVersion = amplitude.__VERSION__;
1037+ */
10321038Amplitude.prototype.__VERSION__ = version;
10331039
10341040module.exports = Amplitude;
@@ -1048,7 +1054,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Amplitude
10481054< br class ="clear ">
10491055
10501056< footer >
1051- Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.4.0</ a > on Fri Apr 01 2016 17:34:16 GMT-0700 (PDT)
1057+ Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.4.0</ a > on Fri Apr 01 2016 17:48:30 GMT-0700 (PDT)
10521058</ footer >
10531059
10541060< script > prettyPrint ( ) ; </ script >
0 commit comments