Sha256: ccaaf63889c14890b9ea1e77ff38dd10f5bc1e48d87014fb8a401fa9a5c73472

Contents?: true

Size: 436 Bytes

Versions: 9

Compression:

Stored size: 436 Bytes

Contents

class Wx::HTML::HtmlWindow

  # Need to override HtmlWindow.add_filter to provide cashing
  # for the added custom html filters to prevent premature GC
  class << self
    def html_filters
      @html_filters ||= []
    end
    private :html_filters

    wx_add_filter = instance_method(:add_filter)
    define_method(:add_filter) do |filter|
      html_filters << filter
      wx_add_filter.bind(self).call(filter)
    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3 lib/wx/html/htmlwindow.rb
wxruby3-0.9.0.pre.rc.2 lib/wx/html/htmlwindow.rb
wxruby3-0.9.0.pre.rc.1 lib/wx/html/htmlwindow.rb
wxruby3-0.9.0.pre.beta.14 lib/wx/html/htmlwindow.rb
wxruby3-0.9.0.pre.beta.13 lib/wx/html/htmlwindow.rb
wxruby3-0.9.0.pre.beta.11 lib/wx/html/htmlwindow.rb
wxruby3-0.9.0.pre.beta.10 lib/wx/html/htmlwindow.rb
wxruby3-0.9.0.pre.beta.9 lib/wx/html/htmlwindow.rb
wxruby3-0.9.0.pre.beta.8 lib/wx/html/htmlwindow.rb