Sha256: 5648aa7145f6dc79e9b0d440312a464326ecb1cbd80536f8de9bbbf75a1dc70a

Contents?: true

Size: 847 Bytes

Versions: 121

Compression:

Stored size: 847 Bytes

Contents

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

Version data entries

121 entries across 121 versions & 1 rubygems

Version Path
RubyApp-0.7.16 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.7.15 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.7.14 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.7.13 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.7.12 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.7.11 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.7.10 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.7.9 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.7.5 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.7.4 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.7.3 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.7.2 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.7.1 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.7.0 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.6.71 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.6.70 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.6.69 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.6.68 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.6.67 lib/ruby_app/elements/mobile/page.js.haml
RubyApp-0.6.66 lib/ruby_app/elements/mobile/page.js.haml