lib/atome/genesis/particles/hierarchy.rb in atome-0.5.6.4.5 vs lib/atome/genesis/particles/hierarchy.rb in atome-0.5.6.4.8
- old
+ new
@@ -80,21 +80,17 @@
end
new({ particle: :affect, category: :hierarchy, type: :string, render: false }) do |children_ids, &user_proc|
children_ids = [children_ids] unless children_ids.instance_of? Array
children_ids.each do |child_id|
- # params[:affect].each do |affected|
- # end
-
child_found = grab(child_id)
- # alert "must exist : #{child_found.id}"
- # puts "correct condition below #{id}"
- #FIXME : found why it crash when removing the conditon below
+ #FIXME : found why it crash when removing the condition below
unless child_found.id == :black_matter
child_found.remove({all: :paint})
end
- child_found&.apply([id], &user_proc)
+ child_found.apply([id], &user_proc)
end
+
children_ids
end
new({ particle: :detached, category: :hierarchy, type: :string, store: false }) # unfastened
new({ sanitizer: :detached }) do |values|