Sha256: 3e62163d9d9758060ef77a992a21678fb6ad03cb3f837c8ec5c006a990c2c81f

Contents?: true

Size: 594 Bytes

Versions: 11

Compression:

Stored size: 594 Bytes

Contents

/**
* Gumby Init
*/

// test for touch event support
Modernizr.load({
	test: Modernizr.touch,

	// if present load custom jQuery mobile build and update Gumby.click
	yep: Gumby.path+'/jquery.mobile.custom.min.js',
	callback: function(url, result, key) {
		// check jQuery mobile has successfully loaded before using tap events
		if($.mobile) {
			window.Gumby.click += ' tap';
		}
	},

	// either way initialize Gumby
	complete: function() {
		window.Gumby.init();

		// if AMD return Gumby object to define
		if(typeof define == "function" && define.amd) {
			define(window.Gumby);
		}
	}
});

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
gumby2-rails-0.0.9 vendor/assets/javascripts/gumby.init.js
gumby2-rails-0.0.8 vendor/assets/javascripts/gumby.init.js
gumby2-rails-0.0.7 vendor/assets/javascripts/gumby.init.js
gumby2-rails-0.0.6 vendor/assets/javascripts/gumby.init.js
gumby2-rails-0.0.5 vendor/assets/javascripts/gumby.init.js
gumby2-rails-0.0.4 vendor/assets/javascripts/gumby.init.js
gumby2-rails-0.0.3 vendor/assets/javascripts/gumby.init.js
gumby2-rails-0.0.2 vendor/assets/javascripts/gumby.init.js
gumby2-rails-0.0.1 vendor/assets/js/libs/gumby.init.js
gumby-0.0.4 vendor/assets/javascripts/gumby.init.js
gumby-0.0.3 vendor/assets/javascripts/gumby.init.js