Sha256: 14a82bcde19bd96e621fc76c770c51975cfd098b7690e1c861b35fee5934c723

Contents?: true

Size: 455 Bytes

Versions: 11

Compression:

Stored size: 455 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

11 entries across 11 versions & 1 rubygems

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