Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't override jQuery.support for properties that have already been s…

…et. Fixes Bootstrap. (#67)
  • Loading branch information...
commit d54cf12bfaec669be3d2d7e6b36ae7a6ce8f0b89 1 parent d24f35c
@rstacruz rstacruz authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 jquery.transit.js
View
8 jquery.transit.js
@@ -62,16 +62,16 @@
var isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
// Check for the browser's transitions support.
- // You can access this in jQuery's `$.support.transition`.
- // As per [jQuery's cssHooks documentation](http://api.jquery.com/jQuery.cssHooks/),
- // we set $.support.transition to a string of the actual property name used.
support.transition = getVendorPropertyName('transition');
support.transitionDelay = getVendorPropertyName('transitionDelay');
support.transform = getVendorPropertyName('transform');
support.transformOrigin = getVendorPropertyName('transformOrigin');
support.transform3d = checkTransform3dSupport();
- $.extend($.support, support);
+ // Populate jQuery's `$.support` with the vendor prefixes we know.
+ // As per [jQuery's cssHooks documentation](http://api.jquery.com/jQuery.cssHooks/),
+ // we set $.support.transition to a string of the actual property name used.
+ $.support = $.extend({}, support, $.support);
var eventNames = {
'transition': 'transitionEnd',
Please sign in to comment.
Something went wrong with that request. Please try again.