Sha256: 5ee37a0dbd756cc12197c56069f820b9a6e7e8ed904c8845222c2dd9e703e33a

Contents?: true

Size: 1.54 KB

Versions: 39

Compression:

Stored size: 1.54 KB

Contents

/**
 * Modernizr Support Plugin
 *
 * @version 2.0.0-beta.3
 * @author Vivid Planet Software GmbH
 * @author Artus Kolanowski
 * @license The MIT License (MIT)
 */
;(function($, Modernizr, window, document, undefined) {

	var events = {
		transition: {
			end: {
				WebkitTransition: 'webkitTransitionEnd',
				MozTransition: 'transitionend',
				OTransition: 'oTransitionEnd',
				transition: 'transitionend'
			}
		},
		animation: {
			end: {
				WebkitAnimation: 'webkitAnimationEnd',
				MozAnimation: 'animationend',
				OAnimation: 'oAnimationEnd',
				animation: 'animationend'
			}
		}
	};

	if (!Modernizr) {
		throw new Error('Modernizr is not loaded.');
	}

	$.each([ 'cssanimations', 'csstransitions', 'csstransforms', 'csstransforms3d', 'prefixed' ], function(i, property) {
		if (typeof Modernizr[property] == 'undefined') {
			throw new Error([ 'Modernizr "', property, '" is not loaded.' ].join(''));
		}
	});

	if (Modernizr.csstransitions) {
		/* jshint -W053 */
		$.support.transition = new String(Modernizr.prefixed('transition'))
		$.support.transition.end = events.transition.end[ $.support.transition ];
	}

	if (Modernizr.cssanimations) {
		/* jshint -W053 */
		$.support.animation = new String(Modernizr.prefixed('animation'))
		$.support.animation.end = events.animation.end[ $.support.animation ];
	}

	if (Modernizr.csstransforms) {
		/* jshint -W053 */
		$.support.transform = new String(Modernizr.prefixed('transform'));
		$.support.transform3d = Modernizr.csstransforms3d;
	}
})(window.Zepto || window.jQuery, window.Modernizr, window, document);

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
wbase-0.3.20 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.19 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.18 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.17 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.16 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.15 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.14 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.13 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.12 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.11 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.10 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.9 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.8 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.7 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.6 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.5 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.4 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.3 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.2 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js
wbase-0.3.1 lib/vendor/admin/owl.carousel/src/js/owl.support.modernizr.js