# frozen_string_literal: true # for browser rendering module BrowserHelper def self.browser_document # Work because of the patched version of opal-browser(0.39) Browser.window end def self.browser_attach_(_parents, _html_object, _atome) # dummy methods to catch atomes that do not need to be attached to any particular visual atime end def self.browser_attach_div(parents, html_object, _atome) html_object.append_to(browser_document[parents]) end def self.browser_attach_style(parents, _html_object, atome) # we test if the atome has a deinition ( it means hold some vectors infomations) if grab(parents).atome[:definition] tag_style = $document[atome[:id]] # get the content the