Sha256: 8ffcb6f3550061a0323a9450c6874f03ca5cc9cfec343f36478448f7336e7d83

Contents?: true

Size: 1.32 KB

Versions: 10

Compression:

Stored size: 1.32 KB

Contents

# frozen_string_literal: true

generator = Genesis.generator
generator.build_render(:browser_bloc)
generator.build_render(:browser_render)
generator.build_render(:browser_delete) do |params|
  browser_object&.remove if params == true
end

generator.build_render(:browser_clear) do
  @atome[:children].each do |child_found|
    grab(child_found).browser_object&.remove
  end
  children([])
end

generator.build_render(:browser_path) do |value|
  BrowserHelper.send("browser_path_#{@atome[:type]}", value, @browser_object, @atome)
end

generator.build_render(:browser_data) do |data|
  # according to the type we send the data to different operator
  type_found = @atome[:type]
  BrowserHelper.send("browser_data_#{type_found}", data, self)
end

generator.build_render(:browser_schedule) do |format_date, proc|
  years = format_date[0]
  months = format_date[1]
  days = format_date[2]
  hours = format_date[3]
  minutes = format_date[4]
  seconds = format_date[5]
  atome_js.JS.schedule(years, months, days, hours, minutes, seconds, self, proc)
end

generator.build_render(:browser_reader) do |file, proc|
  atome_js.JS.reader(file, self, proc)
end

generator.build_render(:browser_cursor) do |value|
  @browser_object.style[:cursor] = value
end

generator.build_render(:browser_overflow) do |value|
  @browser_object.style[:overflow] = value
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
atome-0.5.3.8.1 lib/atome/renderers/browser/utility.rb
atome-0.5.3.8.0 lib/atome/renderers/browser/utility.rb
atome-0.5.3.7.8 lib/atome/renderers/browser/utility.rb
atome-0.5.3.7.3 lib/atome/renderers/browser/utility.rb
atome-0.5.3.7.2 lib/atome/renderers/browser/utility.rb
atome-0.5.3.4 lib/atome/renderers/browser/utility.rb
atome-0.5.3.2 lib/atome/renderers/browser/utility.rb
atome-0.5.2.8 lib/atome/renderers/browser/utility.rb
atome-0.5.2.7 lib/atome/renderers/browser/utility.rb
atome-0.5.2.5 lib/atome/renderers/browser/utility.rb