lib/atome/genesis/particles/utility.rb in atome-0.5.7.5.4 vs lib/atome/genesis/particles/utility.rb in atome-0.5.7.5.9

- old
+ new

@@ -58,36 +58,43 @@ affected_found.refresh end grab(attach).unfasten([id]) Universe.delete(@aid) end + elsif params == false + + + cells.delete(true) + + # touch(false) + # render(:delete, params) + render(:delete, params) + Universe.delete(@aid) elsif params.instance_of? Hash # if we are on a matrix we delete cells found & group found cells.delete(true) group.delete(true) touch(false) - if params[:recursive] + if params[:recursive] == true grab(attach).unfasten([id]) unless grab(@id).tag && (grab(@id).tag[:persistent] || grab(@id).tag[:system]) fasten.each do |atttached_atomes| delete_recursive(atttached_atomes) end # touch(false) - render(:delete, params) + # render(:delete, params) + # html.delete(@id) Universe.delete(@aid) end elsif params[:force] fasten.each do |atttached_atomes| # alert "fasten : #{fasten}" delete_recursive(atttached_atomes, true) end touch(false) render(:delete, params) - # alert "Universe : #{Universe.atomes[@aid]}" - # alert "length = #{Universe.atomes.length}" Universe.delete(@aid) - # alert "Universe : #{Universe.atomes.length}" else # the machine try to find the sub particle id and remove it eg a.delete(monitor: :my_monitor) remove the monitor # with id my_monitor params.each do |param, value| @@ -270,5 +277,6 @@ end new({ particle: :storage, category: :utility, type: :hash }) new({ particle: :state, category: :utility, type: :symbol }) new({ particle: :record, category: :utility, type: :hash }) new({ particle: :preview, category: :utility, type: :hash }) +new({particle: :meteo}) \ No newline at end of file