array-sorted-compositing 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,7 +30,11 @@ module ::Array::Sorted::Compositing::ArrayInterface
30
30
 
31
31
  def update_for_parent_insert( requested_parent_index, parent_index, object )
32
32
 
33
- unless @parent_index_map.replaced_parent_element_with_parent_index?( requested_parent_index )
33
+ # if requested index is not the same as sorted index we want to delete requested index
34
+ # that means if child doesn't have it to delete we don't want to do anything for child
35
+
36
+ unless requested_parent_index != parent_index and
37
+ @parent_index_map.replaced_parent_element_with_parent_index?( requested_parent_index )
34
38
  super
35
39
  end
36
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: array-sorted-compositing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: