Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

events.next() is placed in the wrong scope #116

Merged
merged 2 commits into from
Nov 14, 2017
Merged

Conversation

wrobel
Copy link
Contributor

@wrobel wrobel commented Nov 14, 2017

The bug fix to issue #112 left the events.next() function in the wrong scope. So if you call es.getEvents((err, events) => {...}) without query and/or skip, limit parameters the events.next() won't receive the parameter cleanup and behave in an unpredictable way.

If you leave out the query parameter the events.next() function will
not receive the parameter cleanup as it is placed in the wrong scope.
@adrai adrai merged commit ec60421 into thenativeweb:master Nov 14, 2017
adrai added a commit that referenced this pull request Nov 14, 2017
adrai added a commit that referenced this pull request Nov 14, 2017
@adrai
Copy link
Contributor

adrai commented Nov 14, 2017

Sorry I didn't want to make this confusion... (this happens when trying to use GitHub features on my mobile...)

Just wanted to ask if there is not again a memory issue when always defining the nextFn function on each page?

adrai added a commit that referenced this pull request Nov 14, 2017
@adrai
Copy link
Contributor

adrai commented Nov 14, 2017

should be fixed in v1.12.9

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