Sha256: 11bc0eadfb37cc182551691df6ee7fb27d44668d314799efd393a2de2493e415

Contents?: true

Size: 926 Bytes

Versions: 5

Compression:

Stored size: 926 Bytes

Contents

# frozen_string_literal: true

generator = Genesis.generator

generator.build_render(:browser_id) do |params|
  if @browser_type == :style
    prev_content = @browser_object.inner_html
    new_content = prev_content.sub(@browser_object.id, params)
    @browser_object.inner_html = new_content
  end
  browser_object.id = params if @atome[:id] != params
end

generator.build_render(:browser_type) do |params|
  send("browser_#{params}", user_proc)
end

generator.build_render(:browser_family) do |parents_found|
  BrowserHelper.send("browser_attach_#{@browser_type}", parents_found, @browser_object, @atome)
end

generator.build_render(:browser_attach) do |parents_found|
  parents_found.each do |parent_found|
    BrowserHelper.send("browser_attach_#{@browser_type}", parent_found, @browser_object, @atome)
  end
end

generator.build_render(:browser_detached) do |value, _user_proc|
  @browser_object.remove_class(value)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
atome-0.5.3.8.1 lib/atome/renderers/browser/identity.rb
atome-0.5.3.8.0 lib/atome/renderers/browser/identity.rb
atome-0.5.3.7.8 lib/atome/renderers/browser/identity.rb
atome-0.5.3.7.3 lib/atome/renderers/browser/identity.rb
atome-0.5.3.7.2 lib/atome/renderers/browser/identity.rb