lib/ruby_app/elements/base/base_page.rb in RubyApp-0.0.8 vs lib/ruby_app/elements/base/base_page.rb in RubyApp-0.0.9

- old
+ new

@@ -27,11 +27,11 @@ super(data) end end - class ReleasedEvent < RubyApp::Element::Event + class UnloadedEvent < RubyApp::Element::Event def initialize(data) super(data) end @@ -41,11 +41,11 @@ attr_accessor :interval event :loaded event :triggered - event :released + event :unloaded def initialize super @interval = 0 end @@ -53,11 +53,11 @@ protected def on_event(event) on_loaded(event) if event.is_a?(RubyApp::Elements::Base::BasePage::LoadedEvent) on_triggered(event) if event.is_a?(RubyApp::Elements::Base::BasePage::TriggeredEvent) - on_released(event) if event.is_a?(RubyApp::Elements::Base::BasePage::ReleasedEvent) + on_unloaded(event) if event.is_a?(RubyApp::Elements::Base::BasePage::UnloadedEvent) super(event) end def on_loaded(event) loaded(event) @@ -65,11 +65,11 @@ def on_triggered(event) triggered(event) end - def on_released(event) - released(event) + def on_unloaded(event) + unloaded(event) end end end