MCPcopy
hub / github.com/SortableJS/Sortable / css

Function css

Sortable.js:188–205  ·  view source on GitHub ↗
(el, prop, val)

Source from the content-addressed store, hash-verified

186 }
187 }
188 function css(el, prop, val) {
189 var style = el && el.style;
190 if (style) {
191 if (val === void 0) {
192 if (document.defaultView && document.defaultView.getComputedStyle) {
193 val = document.defaultView.getComputedStyle(el, '');
194 } else if (el.currentStyle) {
195 val = el.currentStyle;
196 }
197 return prop === void 0 ? val : val[prop];
198 } else {
199 if (!(prop in style) && prop.indexOf('webkit') === -1) {
200 prop = '-webkit-' + prop;
201 }
202 style[prop] = val + (typeof val === 'string' ? '' : 'px');
203 }
204 }
205 }
206 function matrix(el, selfOnly) {
207 var appliedTransforms = '';
208 if (typeof el === 'string') {

Callers 15

showCloneFunction · 0.90
hideCloneFunction · 0.90
dragStartedFunction · 0.90
AutoScroll.jsFile · 0.90
matrixFunction · 0.70
getRectFunction · 0.70
lastChildFunction · 0.70
setRectFunction · 0.70
unsetRectFunction · 0.70
AnimationStateManagerFunction · 0.70
_detectDirectionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected