Sha256: 2c8379743cd1aa9d2c8c57cceed96a85ccdd3a4d16826f1a7eaeb33ca0c95491
Contents?: true
Size: 1.11 KB
Versions: 7
Compression:
Stored size: 1.11 KB
Contents
/** * Gumby Init */ !function($) { 'use strict'; // not touch device or no touch events required so auto initialize here if((!Gumby.touchDevice || !Gumby.touchEvents) && Gumby.autoInit) { window.Gumby.init(); // load jQuery mobile touch events } else if(Gumby.touchEvents && Gumby.touchDevice) { Gumby.debug('Loading jQuery mobile touch events'); // set timeout to 2sec yepnope.errorTimeout = 2000; Modernizr.load({ test: Modernizr.touch, yep: Gumby.touchEvents+'/jquery.mobile.custom.min.js', complete: function() { // error loading jQuery mobile if(!$.mobile) { Gumby.error('Error loading jQuery mobile touch events'); } // if not auto initializing // this will allow helpers to fire when initialized Gumby.touchEventsLoaded = true; // auto initialize if(Gumby.autoInit) { window.Gumby.init(); // if already manually initialized then fire helpers } else if(Gumby.uiModulesReady) { Gumby.helpers(); } } }); } // if AMD return Gumby object to define if(typeof define == "function" && define.amd) { define(window.Gumby); } }(jQuery);
Version data entries
7 entries across 7 versions & 4 rubygems