Sha256: 217354b25436a411c46d6dcc9116661c2b78e39ab7a78d92e74cc0954c474715

Contents?: true

Size: 408 Bytes

Versions: 8

Compression:

Stored size: 408 Bytes

Contents

module Glimmer
  module Opal
    class EventListenerProxy
      attr_reader :element_proxy, :event, :selector, :delegate

      def initialize(element_proxy:, event:, selector:, delegate:)
        @element_proxy = element_proxy
        @event = event
        @selector = selector
        @delegate = delegate
      end
      
      def unregister
        $document.off(@delegate)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
glimmer-dsl-opal-0.0.9 lib/glimmer/opal/event_listener_proxy.rb
glimmer-dsl-opal-0.0.8 lib/glimmer/opal/event_listener_proxy.rb
glimmer-dsl-opal-0.0.7 lib/glimmer/opal/event_listener_proxy.rb
glimmer-dsl-opal-0.0.6 lib/glimmer/opal/event_listener_proxy.rb
glimmer-dsl-opal-0.0.5 lib/glimmer/opal/event_listener_proxy.rb
glimmer-dsl-opal-0.0.4 lib/glimmer/opal/event_listener_proxy.rb
glimmer-dsl-opal-0.0.3 lib/glimmer/opal/event_listener_proxy.rb
glimmer-dsl-opal-0.0.2 lib/glimmer/opal/event_listener_proxy.rb