Skip to content

fixing issue #681#1068

Closed
maksimbormot wants to merge 1 commit intomarmelab:masterfrom
maksimbormot:fixing-issue-681
Closed

fixing issue #681#1068
maksimbormot wants to merge 1 commit intomarmelab:masterfrom
maksimbormot:fixing-issue-681

Conversation

@maksimbormot
Copy link
Copy Markdown
Contributor

@maksimbormot maksimbormot commented May 16, 2016

Fixes #681

@fzaninotto
Copy link
Copy Markdown
Member

Please don't include build files, we'll do that after merging.

return;
if(processing) return;
processing = true;
var timer = setInterval(function(){
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you need a setInterval() while the handler is already called on each scroll?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this interval is never cleared, this is a memory leak

@Kmaschta
Copy link
Copy Markdown
Contributor

This PR is superseded by #1322, so I close this one.

Thanks for contributing! I reused your solution.

@Kmaschta Kmaschta closed this Mar 15, 2017
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.

3 participants