Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Removelistitemfix #46

Merged
merged 4 commits into from
Jul 10, 2014
Merged

Removelistitemfix #46

merged 4 commits into from
Jul 10, 2014

Conversation

canthefason
Copy link
Contributor

No description provided.

destroy item, i
break
else if itemData
if itemData?[dataPath] is item.getData()?[dataPath]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if itemData and item.getData() was undefined, this comparison was returning true. Or if dataPath does not exists for both sides it was resulting as the same.

@canthefason
Copy link
Contributor Author

updated

@emit 'ItemWasRemoved', @items[index], index
[item] = @items.splice index, 1
destroy = (item, index) =>
@emit 'ItemWasRemoved', item, i
Copy link
Member

Choose a reason for hiding this comment

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

can this be the race condition we were seing maybe? index in params list i in function block.

sinan added a commit that referenced this pull request Jul 10, 2014
@sinan sinan merged commit 9a3639d into master.listview Jul 10, 2014
@sinan sinan deleted the removelistitemfix branch July 10, 2014 00:35
@sinan
Copy link
Member

sinan commented Jul 10, 2014

thx @canthefason

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants