Skip to content

Commit

Permalink
v2.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
madster26 committed Apr 9, 2019
1 parent f442952 commit 0efb122
Show file tree
Hide file tree
Showing 11 changed files with 144 additions and 144 deletions.
10 changes: 5 additions & 5 deletions build/mixpanel.amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ define(function () { 'use strict';

var Config = {
DEBUG: false,
LIB_VERSION: '2.27.1'
LIB_VERSION: '2.28.0'
};

// since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file
Expand Down Expand Up @@ -4005,7 +4005,7 @@ define(function () { 'use strict';
MixpanelLib.prototype._init = function(token, config, name) {
this['__loaded'] = true;
this['config'] = {};
this._triggered_notifs = [];
this['_triggered_notifs'] = [];

this.set_config(_.extend({}, DEFAULT_CONFIG, config, {
'name': name,
Expand Down Expand Up @@ -4984,7 +4984,7 @@ define(function () { 'use strict';
};

MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) {
var arr = this._triggered_notifs;
var arr = this['_triggered_notifs'];
for (var i = 0; i < arr.length; i++) {
var notif = new MPNotif(arr[i], this);
if (notif._matches_event_data(event_data)) {
Expand Down Expand Up @@ -5017,10 +5017,10 @@ define(function () { 'use strict';
data,
this._prepare_callback(_.bind(function(result) {
if (result['notifications'] && result['notifications'].length > 0) {
this._triggered_notifs = [];
this['_triggered_notifs'] = [];
var notifications = [];
_.each(result['notifications'], function(notif) {
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif);
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif);
}, this);
if (notifications.length > 0) {
this._show_notification.call(this, notifications[0]);
Expand Down
10 changes: 5 additions & 5 deletions build/mixpanel.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var Config = {
DEBUG: false,
LIB_VERSION: '2.27.1'
LIB_VERSION: '2.28.0'
};

// since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file
Expand Down Expand Up @@ -4005,7 +4005,7 @@ MixpanelLib.prototype.init = function (token, config, name) {
MixpanelLib.prototype._init = function(token, config, name) {
this['__loaded'] = true;
this['config'] = {};
this._triggered_notifs = [];
this['_triggered_notifs'] = [];

this.set_config(_.extend({}, DEFAULT_CONFIG, config, {
'name': name,
Expand Down Expand Up @@ -4984,7 +4984,7 @@ MixpanelLib.prototype._event_is_disabled = function(event_name) {
};

MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) {
var arr = this._triggered_notifs;
var arr = this['_triggered_notifs'];
for (var i = 0; i < arr.length; i++) {
var notif = new MPNotif(arr[i], this);
if (notif._matches_event_data(event_data)) {
Expand Down Expand Up @@ -5017,10 +5017,10 @@ MixpanelLib.prototype._check_and_handle_notifications = addOptOutCheckMixpanelLi
data,
this._prepare_callback(_.bind(function(result) {
if (result['notifications'] && result['notifications'].length > 0) {
this._triggered_notifs = [];
this['_triggered_notifs'] = [];
var notifications = [];
_.each(result['notifications'], function(notif) {
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif);
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif);
}, this);
if (notifications.length > 0) {
this._show_notification.call(this, notifications[0]);
Expand Down
10 changes: 5 additions & 5 deletions build/mixpanel.globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

var Config = {
DEBUG: false,
LIB_VERSION: '2.27.1'
LIB_VERSION: '2.28.0'
};

// since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file
Expand Down Expand Up @@ -4006,7 +4006,7 @@
MixpanelLib.prototype._init = function(token, config, name) {
this['__loaded'] = true;
this['config'] = {};
this._triggered_notifs = [];
this['_triggered_notifs'] = [];

this.set_config(_.extend({}, DEFAULT_CONFIG, config, {
'name': name,
Expand Down Expand Up @@ -4985,7 +4985,7 @@
};

MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) {
var arr = this._triggered_notifs;
var arr = this['_triggered_notifs'];
for (var i = 0; i < arr.length; i++) {
var notif = new MPNotif(arr[i], this);
if (notif._matches_event_data(event_data)) {
Expand Down Expand Up @@ -5018,10 +5018,10 @@
data,
this._prepare_callback(_.bind(function(result) {
if (result['notifications'] && result['notifications'].length > 0) {
this._triggered_notifs = [];
this['_triggered_notifs'] = [];
var notifications = [];
_.each(result['notifications'], function(notif) {
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif);
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif);
}, this);
if (notifications.length > 0) {
this._show_notification.call(this, notifications[0]);
Expand Down
10 changes: 5 additions & 5 deletions build/mixpanel.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

var Config = {
DEBUG: false,
LIB_VERSION: '2.27.1'
LIB_VERSION: '2.28.0'
};

// since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file
Expand Down Expand Up @@ -4009,7 +4009,7 @@
MixpanelLib.prototype._init = function(token, config, name) {
this['__loaded'] = true;
this['config'] = {};
this._triggered_notifs = [];
this['_triggered_notifs'] = [];

this.set_config(_.extend({}, DEFAULT_CONFIG, config, {
'name': name,
Expand Down Expand Up @@ -4988,7 +4988,7 @@
};

MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) {
var arr = this._triggered_notifs;
var arr = this['_triggered_notifs'];
for (var i = 0; i < arr.length; i++) {
var notif = new MPNotif(arr[i], this);
if (notif._matches_event_data(event_data)) {
Expand Down Expand Up @@ -5021,10 +5021,10 @@
data,
this._prepare_callback(_.bind(function(result) {
if (result['notifications'] && result['notifications'].length > 0) {
this._triggered_notifs = [];
this['_triggered_notifs'] = [];
var notifications = [];
_.each(result['notifications'], function(notif) {
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif);
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif);
}, this);
if (notifications.length > 0) {
this._show_notification.call(this, notifications[0]);
Expand Down
10 changes: 5 additions & 5 deletions examples/commonjs-browserify/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

var Config = {
DEBUG: false,
LIB_VERSION: '2.27.1'
LIB_VERSION: '2.28.0'
};

// since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file
Expand Down Expand Up @@ -4006,7 +4006,7 @@ MixpanelLib.prototype.init = function (token, config, name) {
MixpanelLib.prototype._init = function(token, config, name) {
this['__loaded'] = true;
this['config'] = {};
this._triggered_notifs = [];
this['_triggered_notifs'] = [];

this.set_config(_.extend({}, DEFAULT_CONFIG, config, {
'name': name,
Expand Down Expand Up @@ -4985,7 +4985,7 @@ MixpanelLib.prototype._event_is_disabled = function(event_name) {
};

MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) {
var arr = this._triggered_notifs;
var arr = this['_triggered_notifs'];
for (var i = 0; i < arr.length; i++) {
var notif = new MPNotif(arr[i], this);
if (notif._matches_event_data(event_data)) {
Expand Down Expand Up @@ -5018,10 +5018,10 @@ MixpanelLib.prototype._check_and_handle_notifications = addOptOutCheckMixpanelLi
data,
this._prepare_callback(_.bind(function(result) {
if (result['notifications'] && result['notifications'].length > 0) {
this._triggered_notifs = [];
this['_triggered_notifs'] = [];
var notifications = [];
_.each(result['notifications'], function(notif) {
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif);
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif);
}, this);
if (notifications.length > 0) {
this._show_notification.call(this, notifications[0]);
Expand Down
10 changes: 5 additions & 5 deletions examples/es2015-babelify/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ Object.defineProperty(exports, '__esModule', {
});
var Config = {
DEBUG: false,
LIB_VERSION: '2.27.1'
LIB_VERSION: '2.28.0'
};

exports['default'] = Config;
Expand Down Expand Up @@ -1867,7 +1867,7 @@ MixpanelLib.prototype.init = function (token, config, name) {
MixpanelLib.prototype._init = function (token, config, name) {
this['__loaded'] = true;
this['config'] = {};
this._triggered_notifs = [];
this['_triggered_notifs'] = [];

this.set_config(_utils._.extend({}, DEFAULT_CONFIG, config, {
'name': name,
Expand Down Expand Up @@ -2849,7 +2849,7 @@ MixpanelLib.prototype._event_is_disabled = function (event_name) {
};

MixpanelLib.prototype._check_and_handle_triggered_notifications = (0, _gdprUtils.addOptOutCheckMixpanelLib)(function (event_data) {
var arr = this._triggered_notifs;
var arr = this['_triggered_notifs'];
for (var i = 0; i < arr.length; i++) {
var notif = new MPNotif(arr[i], this);
if (notif._matches_event_data(event_data)) {
Expand All @@ -2875,10 +2875,10 @@ MixpanelLib.prototype._check_and_handle_notifications = (0, _gdprUtils.addOptOut
};
this._send_request(this.get_config('api_host') + '/decide/', data, this._prepare_callback(_utils._.bind(function (result) {
if (result['notifications'] && result['notifications'].length > 0) {
this._triggered_notifs = [];
this['_triggered_notifs'] = [];
var notifications = [];
_utils._.each(result['notifications'], function (notif) {
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif);
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif);
}, this);
if (notifications.length > 0) {
this._show_notification.call(this, notifications[0]);
Expand Down
10 changes: 5 additions & 5 deletions examples/umd-webpack/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

var Config = {
DEBUG: false,
LIB_VERSION: '2.27.1'
LIB_VERSION: '2.28.0'
};

// since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file
Expand Down Expand Up @@ -4072,7 +4072,7 @@
MixpanelLib.prototype._init = function(token, config, name) {
this['__loaded'] = true;
this['config'] = {};
this._triggered_notifs = [];
this['_triggered_notifs'] = [];

this.set_config(_.extend({}, DEFAULT_CONFIG, config, {
'name': name,
Expand Down Expand Up @@ -5051,7 +5051,7 @@
};

MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) {
var arr = this._triggered_notifs;
var arr = this['_triggered_notifs'];
for (var i = 0; i < arr.length; i++) {
var notif = new MPNotif(arr[i], this);
if (notif._matches_event_data(event_data)) {
Expand Down Expand Up @@ -5084,10 +5084,10 @@
data,
this._prepare_callback(_.bind(function(result) {
if (result['notifications'] && result['notifications'].length > 0) {
this._triggered_notifs = [];
this['_triggered_notifs'] = [];
var notifications = [];
_.each(result['notifications'], function(notif) {
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif);
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif);
}, this);
if (notifications.length > 0) {
this._show_notification.call(this, notifications[0]);
Expand Down
Loading

0 comments on commit 0efb122

Please sign in to comment.