Sha256: 9eaa926fca75ffa6f4d360902f986d0ead1f7cbeeddf955edbbeb0ef1b866981

Contents?: true

Size: 1.03 KB

Versions: 9

Compression:

Stored size: 1.03 KB

Contents

:plain
  // #{__FILE__}
  $(document).ready( function() {
    $(document).on('pageshow', 'div[data-role="page"]', function(event) {
      RubyApp.queueEvent({_class:'RubyApp::Elements::Mobile::Page::ShownEvent', source:$(this).attr('id')});
    });
    $(document).on('pagebeforehide', 'div[data-role="page"]', function(event) {
      RubyApp.queueEvent({_class:'RubyApp::Elements::Mobile::Page::BeforeHiddenEvent', source:$(this).attr('id')});
    });
    $(document).on('pagehide', 'div[data-role="page"]', function(event) {
      RubyApp.queueEvent({_class:'RubyApp::Elements::Mobile::Page::HiddenEvent', source:$(this).attr('id')});
    });
    $(document).on('swipeleft', 'div[data-role="page"]', function(event) {
      RubyApp.queueEvent({_class:'RubyApp::Elements::Mobile::Page::SwipedLeftEvent', source:$(this).attr('id')});
    });
    $(document).on('swiperight', 'div[data-role="page"]', function(event) {
      RubyApp.queueEvent({_class:'RubyApp::Elements::Mobile::Page::SwipedRightEvent', source:$(this).attr('id')});
    });
  });
= yield

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
RubyApp-0.5.38 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.5.37 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.5.36 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.5.35 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.5.34 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.5.33 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.5.32 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.5.31 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.5.30 lib/ruby_app/elements/mobile/page.js.haml