Sha256: ddfd29e646452ffef87241699a696592f216bf4fff3b95ac3e9303d659c6b2b5
Contents?: true
Size: 725 Bytes
Versions: 3
Compression:
Stored size: 725 Bytes
Contents
module Hyperstack module Component module WhileLoading def __hyperstack_component_rescue_wrapper(child) Hyperstack::Internal::Component::WhileLoadingWrapper(child: self, children_elements: child) end def resources_loading? @__hyperstack_while_loading_waiting_on_resources end def resources_loaded? !@__hyperstack_while_loading_waiting_on_resources end if Hyperstack::Component::IsomorphicHelpers.on_opal_client? %x{ function onError(event) { if (event.message.match(/^Uncaught NotQuiet: /)) event.preventDefault(); } window.addEventListener('error', onError); } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems