Thanks to visit codestin.com
Credit goes to github.com

Skip to content

trigger only one event when calling removeAll() #551

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

Closed
wants to merge 2 commits into from
Closed

trigger only one event when calling removeAll() #551

wants to merge 2 commits into from

Conversation

sthuck
Copy link

@sthuck sthuck commented Nov 3, 2016

Hi guys,

Currently when calling removeAll(), the 'removed' event get triggered for every item on the grid, and it passes only one item to the event handler. I think a more logical behavior is triggering the event only once. Otherwise, there isn't really a point for '_removedNodes' on GridStackEngine. Hope you'll find this change needed.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.08%) to 71.443% when pulling e3329ad on sthuck:master into c1c4ff8 on troolee:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.08%) to 71.443% when pulling d585408 on sthuck:master into c1c4ff8 on troolee:master.

@troolee troolee changed the base branch from master to develop April 12, 2017 04:59
@radiolips
Copy link
Member

I'm not sure if this is the right way to go or not. I think about this every so often. It haunts me. I can understand both sides.

@adumesny
Copy link
Member

thank you for the suggestion - I ended up checking in a better solution #1097

@adumesny adumesny closed this Dec 17, 2019
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.

4 participants