Sha256: 50b9a7a9440503583af2ae063e48c8334490f171ebb162bd0b8d1e96ed0dc633

Contents?: true

Size: 1.35 KB

Versions: 18

Compression:

Stored size: 1.35 KB

Contents

// Sets the require.js configuration for your application.
require.config( {

      // 3rd party script alias names (Easier to type "jquery" than "libs/jquery-1.8.2.min")
      paths: {

            // Core Libraries
            "jquery": "libs/jquery",
            "jquerymobile": "libs/jquerymobile",
            "underscore": "libs/lodash",
            "backbone": "libs/backbone"

      },

      // Sets the configuration for your third party scripts that are not AMD compatible
      shim: {

            "backbone": {
                  "deps": [ "underscore", "jquery" ],
                  "exports": "Backbone"  //attaches "Backbone" to the window object
            }

      } // end Shim Configuration

} );

// Includes File Dependencies
require([ "jquery", "backbone", "routers/mobileRouter" ], function( $, Backbone, Mobile ) {

	$( document ).on( "mobileinit",
		// Set up the "mobileinit" handler before requiring jQuery Mobile's module
		function() {
			// Prevents all anchor click handling including the addition of active button state and alternate link bluring.
			$.mobile.linkBindingEnabled = false;

			// Disabling this will prevent jQuery Mobile from handling hash changes
			$.mobile.hashListeningEnabled = false;
		}
	)

	require( [ "jquerymobile" ], function() {
		// Instantiates a new Backbone.js Mobile Router
		this.router = new Mobile();
	});
} );

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
RubyApp-0.7.16 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.7.15 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.7.14 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.7.13 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.7.12 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.7.11 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.7.10 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.7.9 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.7.5 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.7.4 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.7.3 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.7.2 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.7.1 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.7.0 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.6.71 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.6.70 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.6.69 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js
RubyApp-0.6.68 lib/ruby_app/resources/elements/mobile/document/jquery.mobile-1.3.0/demos/docs/examples/backbone-require/js/mobile.js