lib/renderers/html/material.rb in atome-0.5.7.1.0 vs lib/renderers/html/material.rb in atome-0.5.7.1.7

- old
+ new

@@ -18,13 +18,15 @@ object_id_to_remove.each do |particle, value| case particle when :category html.remove_class(value) else - atome_ids_found = send(object_id_to_remove[:all]) - atome_ids_found.each do |atome_id| - remove(atome_id) + if object_id_to_remove[:all] + atome_ids_found = send(object_id_to_remove[:all]) + atome_ids_found.each do |atome_id| + remove(atome_id) + end end end end else atome_to_remove = grab(object_id_to_remove) @@ -42,13 +44,11 @@ end when :shadow html.style("boxShadow", 'none') html.style("filter", 'none') @apply.delete(object_id_to_remove) - # apply(@apply) when :border - # alert :poipoipoipoipo html.style("border", 'none') html.style("filter", 'none') @apply.delete(object_id_to_remove) # apply(@apply) when :paint @@ -79,22 +79,22 @@ # blue = color_found.blue * 255 # alpha = color_found.alpha # # html.style(:border, "#{type} #{thickness}px rgba(#{red},#{green},#{blue},#{alpha})") # end -new({ method: :thickness, type: :integer, renderer: :html}) +new({ method: :thickness, type: :integer, renderer: :html }) # end -new({ method: :pattern, type: :integer, renderer: :html}) +new({ method: :pattern, type: :integer, renderer: :html }) new({ method: :fill, renderer: :html }) do |params| html.fill(params) end -new({ method: :opacity, type: :integer, renderer: :html}) do |value| +new({ method: :opacity, type: :integer, renderer: :html }) do |value| # html.opacity(value) - html.style('opacity',value) + html.style('opacity', value) end new({ method: :visual, type: :string, renderer: :html, specific: :text }) do |value, _user_proc| - html.style('fontFamily', value) + html.style('fontFamily', value) end \ No newline at end of file