Initial OpenECOMP Portal commit
[portal.git] / ecomp-portal-FE / client / bower_components / jquery / src / css / var / getStyles.js
diff --git a/ecomp-portal-FE/client/bower_components/jquery/src/css/var/getStyles.js b/ecomp-portal-FE/client/bower_components/jquery/src/css/var/getStyles.js
new file mode 100644 (file)
index 0000000..02a4b81
--- /dev/null
@@ -0,0 +1,15 @@
+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"
+               var view = elem.ownerDocument.defaultView;
+
+               if ( !view || !view.opener ) {
+                       view = window;
+               }
+
+               return view.getComputedStyle( elem );
+       };
+} );