Version 1
[yaffs-website] / vendor / geedmo / yamm3 / demo / components / jquery / src / css / var / getStyles.js
diff --git a/vendor/geedmo/yamm3/demo/components/jquery/src/css/var/getStyles.js b/vendor/geedmo/yamm3/demo/components/jquery/src/css/var/getStyles.js
new file mode 100644 (file)
index 0000000..413acd0
--- /dev/null
@@ -0,0 +1,12 @@
+define(function() {
+       return function( elem ) {
+               // Support: IE<=11+, Firefox<=30+ (#15098, #14150)
+               // IE throws on elements created in popups
+               // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
+               if ( elem.ownerDocument.defaultView.opener ) {
+                       return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
+               }
+
+               return window.getComputedStyle( elem, null );
+       };
+});