Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
prabrisha-rudder committed Feb 20, 2020
1 parent 10fc57a commit c918e5e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
8 changes: 0 additions & 8 deletions analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,6 @@ class Analytics {
if (typeof traits == "function") (callback = traits), (options = null), (traits = null);
if (typeof groupId == "object") (options = traits), (traits = groupId), (id=group.id());

/* group.identify(id, traits);
var msg = this.normalize({
options: options,
traits: group.traits(),
groupId: group.id()
}); */

this.groupId = groupId;
this.storage.setGroupId(this.groupId);

Expand Down
7 changes: 0 additions & 7 deletions dist/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -8709,13 +8709,6 @@ var rudderanalytics = (function (exports) {
if (typeof options == "function") callback = options, options = null;
if (typeof traits == "function") callback = traits, options = null, traits = null;
if (_typeof(groupId) == "object") options = traits, traits = groupId, id = _group.id();
/* group.identify(id, traits);
var msg = this.normalize({
options: options,
traits: group.traits(),
groupId: group.id()
}); */

this.groupId = groupId;
this.storage.setGroupId(this.groupId);
var rudderElement = new RudderElementBuilder().setType("group").build();
Expand Down
2 changes: 1 addition & 1 deletion dist/rudder-analytics.min.js

Large diffs are not rendered by default.

0 comments on commit c918e5e

Please sign in to comment.