Sha256: c885dc7969308bf1295f94dd109dbb74269f0c08633d5ac405ee76255c955fb0
Contents?: true
Size: 695 Bytes
Versions: 7
Compression:
Stored size: 695 Bytes
Contents
module LucidFunc module Initializer def initialize self.JS[:native_props] = `{ props: null }` @native_props = `Opal.React.Component.Props.$new(#{self})` @app_store = LucidComponent::AppStoreProxy.new(self) @class_store = LucidComponent::ClassStoreProxy.new(self) @store = LucidComponent::InstanceStoreProxy.new(self) event_handlers = self.class.event_handlers event_handler_source = self.class %x{ for (var i = 0; i < event_handlers.length; i++) { self[event_handlers[i]] = event_handler_source[event_handlers[i]]; self[event_handlers[i]] = self[event_handlers[i]].bind(self); } } end end end
Version data entries
7 entries across 7 versions & 1 rubygems