Skip to content

Conversation

@karolk
Copy link

@karolk karolk commented Nov 27, 2014

This code no longer tries to mock the analytics object, because when it happens the mock object doesn't get assigned the 'initialized' property correctly. This is also a deprecated flag in segmentio. Instead it uses the presence of analytics as signal to resend the queue of events and start proxying them to the library.

karolk and others added 6 commits November 26, 2014 16:17
do not rely on initialized flag, which is now deprecated
…is avoid keeping events stuck in the queue until the next segmentio method call
flush the queue of pending events when analytics script is loaded. Th…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants