MCPcopy
hub / github.com/rstacruz/jquery.transit / getProperties

Function getProperties

jquery.transit.js:475–491  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

473 // Returns properties (for `transition-property`) for dictionary `props`. The
474 // value of `props` is what you would expect in `$.css(...)`.
475 function getProperties(props) {
476 var re = [];
477
478 $.each(props, function(key) {
479 key = $.camelCase(key); // Convert "text-align" => "textAlign"
480 key = $.transit.propertyMap[key] || $.cssProps[key] || key;
481 key = uncamel(key); // Convert back to dasherized
482
483 // Get vendor specify propertie
484 if (support[key])
485 key = uncamel(support[key]);
486
487 if ($.inArray(key, re) === -1) { re.push(key); }
488 });
489
490 return re;
491 }
492
493 // ### getTransition()
494 // Returns the transition string to be used for the `transition` CSS property.

Callers 1

getTransitionFunction · 0.85

Calls 1

uncamelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…