Skip to content

trigger only one event when calling removeAll()#551

Closed
sthuck wants to merge 2 commits intogridstack:developfrom
sthuck:master
Closed

trigger only one event when calling removeAll()#551
sthuck wants to merge 2 commits intogridstack:developfrom
sthuck:master

Conversation

@sthuck
Copy link
Copy Markdown

@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
Copy Markdown

Coverage Status

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

@coveralls
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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