MCPcopy
hub / github.com/layui/layui / getStyles

Function getStyles

src/modules/jquery.js:6375–6386  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

6373 var rcustomProp = /^--/;
6374
6375 var getStyles = function (elem) {
6376 // Support: IE <=11 only, Firefox <=30 (trac-15098, trac-14150)
6377 // IE throws on elements created in popups
6378 // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
6379 var view = elem.ownerDocument.defaultView;
6380
6381 if (!view || !view.opener) {
6382 view = window;
6383 }
6384
6385 return view.getComputedStyle(elem);
6386 };
6387
6388 var swap = function (elem, options, callback) {
6389 var ret,

Callers 3

curCSSFunction · 0.85
getWidthOrHeightFunction · 0.85
jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected