Skip to content

Commit 0efb122

Browse files
author
Madhu Palani
committed
v2.28.0
1 parent f442952 commit 0efb122

File tree

11 files changed

+144
-144
lines changed

11 files changed

+144
-144
lines changed

build/mixpanel.amd.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ define(function () { 'use strict';
22

33
var Config = {
44
DEBUG: false,
5-
LIB_VERSION: '2.27.1'
5+
LIB_VERSION: '2.28.0'
66
};
77

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

40104010
this.set_config(_.extend({}, DEFAULT_CONFIG, config, {
40114011
'name': name,
@@ -4984,7 +4984,7 @@ define(function () { 'use strict';
49844984
};
49854985

49864986
MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) {
4987-
var arr = this._triggered_notifs;
4987+
var arr = this['_triggered_notifs'];
49884988
for (var i = 0; i < arr.length; i++) {
49894989
var notif = new MPNotif(arr[i], this);
49904990
if (notif._matches_event_data(event_data)) {
@@ -5017,10 +5017,10 @@ define(function () { 'use strict';
50175017
data,
50185018
this._prepare_callback(_.bind(function(result) {
50195019
if (result['notifications'] && result['notifications'].length > 0) {
5020-
this._triggered_notifs = [];
5020+
this['_triggered_notifs'] = [];
50215021
var notifications = [];
50225022
_.each(result['notifications'], function(notif) {
5023-
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif);
5023+
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif);
50245024
}, this);
50255025
if (notifications.length > 0) {
50265026
this._show_notification.call(this, notifications[0]);

build/mixpanel.cjs.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var Config = {
44
DEBUG: false,
5-
LIB_VERSION: '2.27.1'
5+
LIB_VERSION: '2.28.0'
66
};
77

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

40104010
this.set_config(_.extend({}, DEFAULT_CONFIG, config, {
40114011
'name': name,
@@ -4984,7 +4984,7 @@ MixpanelLib.prototype._event_is_disabled = function(event_name) {
49844984
};
49854985

49864986
MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) {
4987-
var arr = this._triggered_notifs;
4987+
var arr = this['_triggered_notifs'];
49884988
for (var i = 0; i < arr.length; i++) {
49894989
var notif = new MPNotif(arr[i], this);
49904990
if (notif._matches_event_data(event_data)) {
@@ -5017,10 +5017,10 @@ MixpanelLib.prototype._check_and_handle_notifications = addOptOutCheckMixpanelLi
50175017
data,
50185018
this._prepare_callback(_.bind(function(result) {
50195019
if (result['notifications'] && result['notifications'].length > 0) {
5020-
this._triggered_notifs = [];
5020+
this['_triggered_notifs'] = [];
50215021
var notifications = [];
50225022
_.each(result['notifications'], function(notif) {
5023-
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif);
5023+
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif);
50245024
}, this);
50255025
if (notifications.length > 0) {
50265026
this._show_notification.call(this, notifications[0]);

build/mixpanel.globals.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
var Config = {
55
DEBUG: false,
6-
LIB_VERSION: '2.27.1'
6+
LIB_VERSION: '2.28.0'
77
};
88

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

40114011
this.set_config(_.extend({}, DEFAULT_CONFIG, config, {
40124012
'name': name,
@@ -4985,7 +4985,7 @@
49854985
};
49864986

49874987
MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) {
4988-
var arr = this._triggered_notifs;
4988+
var arr = this['_triggered_notifs'];
49894989
for (var i = 0; i < arr.length; i++) {
49904990
var notif = new MPNotif(arr[i], this);
49914991
if (notif._matches_event_data(event_data)) {
@@ -5018,10 +5018,10 @@
50185018
data,
50195019
this._prepare_callback(_.bind(function(result) {
50205020
if (result['notifications'] && result['notifications'].length > 0) {
5021-
this._triggered_notifs = [];
5021+
this['_triggered_notifs'] = [];
50225022
var notifications = [];
50235023
_.each(result['notifications'], function(notif) {
5024-
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif);
5024+
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif);
50255025
}, this);
50265026
if (notifications.length > 0) {
50275027
this._show_notification.call(this, notifications[0]);

build/mixpanel.umd.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
var Config = {
88
DEBUG: false,
9-
LIB_VERSION: '2.27.1'
9+
LIB_VERSION: '2.28.0'
1010
};
1111

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

40144014
this.set_config(_.extend({}, DEFAULT_CONFIG, config, {
40154015
'name': name,
@@ -4988,7 +4988,7 @@
49884988
};
49894989

49904990
MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) {
4991-
var arr = this._triggered_notifs;
4991+
var arr = this['_triggered_notifs'];
49924992
for (var i = 0; i < arr.length; i++) {
49934993
var notif = new MPNotif(arr[i], this);
49944994
if (notif._matches_event_data(event_data)) {
@@ -5021,10 +5021,10 @@
50215021
data,
50225022
this._prepare_callback(_.bind(function(result) {
50235023
if (result['notifications'] && result['notifications'].length > 0) {
5024-
this._triggered_notifs = [];
5024+
this['_triggered_notifs'] = [];
50255025
var notifications = [];
50265026
_.each(result['notifications'], function(notif) {
5027-
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif);
5027+
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif);
50285028
}, this);
50295029
if (notifications.length > 0) {
50305030
this._show_notification.call(this, notifications[0]);

examples/commonjs-browserify/bundle.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
var Config = {
55
DEBUG: false,
6-
LIB_VERSION: '2.27.1'
6+
LIB_VERSION: '2.28.0'
77
};
88

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

40114011
this.set_config(_.extend({}, DEFAULT_CONFIG, config, {
40124012
'name': name,
@@ -4985,7 +4985,7 @@ MixpanelLib.prototype._event_is_disabled = function(event_name) {
49854985
};
49864986

49874987
MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) {
4988-
var arr = this._triggered_notifs;
4988+
var arr = this['_triggered_notifs'];
49894989
for (var i = 0; i < arr.length; i++) {
49904990
var notif = new MPNotif(arr[i], this);
49914991
if (notif._matches_event_data(event_data)) {
@@ -5018,10 +5018,10 @@ MixpanelLib.prototype._check_and_handle_notifications = addOptOutCheckMixpanelLi
50185018
data,
50195019
this._prepare_callback(_.bind(function(result) {
50205020
if (result['notifications'] && result['notifications'].length > 0) {
5021-
this._triggered_notifs = [];
5021+
this['_triggered_notifs'] = [];
50225022
var notifications = [];
50235023
_.each(result['notifications'], function(notif) {
5024-
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif);
5024+
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif);
50255025
}, this);
50265026
if (notifications.length > 0) {
50275027
this._show_notification.call(this, notifications[0]);

examples/es2015-babelify/bundle.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ Object.defineProperty(exports, '__esModule', {
732732
});
733733
var Config = {
734734
DEBUG: false,
735-
LIB_VERSION: '2.27.1'
735+
LIB_VERSION: '2.28.0'
736736
};
737737

738738
exports['default'] = Config;
@@ -1867,7 +1867,7 @@ MixpanelLib.prototype.init = function (token, config, name) {
18671867
MixpanelLib.prototype._init = function (token, config, name) {
18681868
this['__loaded'] = true;
18691869
this['config'] = {};
1870-
this._triggered_notifs = [];
1870+
this['_triggered_notifs'] = [];
18711871

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

28512851
MixpanelLib.prototype._check_and_handle_triggered_notifications = (0, _gdprUtils.addOptOutCheckMixpanelLib)(function (event_data) {
2852-
var arr = this._triggered_notifs;
2852+
var arr = this['_triggered_notifs'];
28532853
for (var i = 0; i < arr.length; i++) {
28542854
var notif = new MPNotif(arr[i], this);
28552855
if (notif._matches_event_data(event_data)) {
@@ -2875,10 +2875,10 @@ MixpanelLib.prototype._check_and_handle_notifications = (0, _gdprUtils.addOptOut
28752875
};
28762876
this._send_request(this.get_config('api_host') + '/decide/', data, this._prepare_callback(_utils._.bind(function (result) {
28772877
if (result['notifications'] && result['notifications'].length > 0) {
2878-
this._triggered_notifs = [];
2878+
this['_triggered_notifs'] = [];
28792879
var notifications = [];
28802880
_utils._.each(result['notifications'], function (notif) {
2881-
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif);
2881+
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif);
28822882
}, this);
28832883
if (notifications.length > 0) {
28842884
this._show_notification.call(this, notifications[0]);

examples/umd-webpack/bundle.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
var Config = {
7171
DEBUG: false,
72-
LIB_VERSION: '2.27.1'
72+
LIB_VERSION: '2.28.0'
7373
};
7474

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

40774077
this.set_config(_.extend({}, DEFAULT_CONFIG, config, {
40784078
'name': name,
@@ -5051,7 +5051,7 @@
50515051
};
50525052

50535053
MixpanelLib.prototype._check_and_handle_triggered_notifications = addOptOutCheckMixpanelLib(function(event_data) {
5054-
var arr = this._triggered_notifs;
5054+
var arr = this['_triggered_notifs'];
50555055
for (var i = 0; i < arr.length; i++) {
50565056
var notif = new MPNotif(arr[i], this);
50575057
if (notif._matches_event_data(event_data)) {
@@ -5084,10 +5084,10 @@
50845084
data,
50855085
this._prepare_callback(_.bind(function(result) {
50865086
if (result['notifications'] && result['notifications'].length > 0) {
5087-
this._triggered_notifs = [];
5087+
this['_triggered_notifs'] = [];
50885088
var notifications = [];
50895089
_.each(result['notifications'], function(notif) {
5090-
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this._triggered_notifs : notifications).push(notif);
5090+
(notif['display_triggers'] && notif['display_triggers'].length > 0 ? this['_triggered_notifs'] : notifications).push(notif);
50915091
}, this);
50925092
if (notifications.length > 0) {
50935093
this._show_notification.call(this, notifications[0]);

0 commit comments

Comments
 (0)