]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
more fixes based on feedback from Steven [#452 state:peer-review-requested]
authorAnna Sobiepanek <annaopensource@gmail.com>
Thu, 21 Apr 2011 20:36:03 +0000 (16:36 -0400)
committerAnna Sobiepanek <annaopensource@gmail.com>
Thu, 21 Apr 2011 20:36:03 +0000 (16:36 -0400)
players/vimeo/popcorn.vimeo.js

index aad5b94ae3a35bd82fc6915291ca0ad192c0ae77..d2c3b266245cfbc0513ffca24d455df348168794 100644 (file)
       return matches ? matches[0].substr(10) : "";
     }
     
-    // Borrowed from: http://www.quirksmode.org/dom/getstyles.html
     // Gets the style for the given element
     function getStyle( elem, styleProp ) {
       return elem.style[styleProp];
-      if ( elem.currentStyle ) {
-        // IE way
-        return elem.currentStyle[styleProp];
-      } else if ( global.getComputedStyle ) {
-        // Firefox, Chrome, et. al
-        return document.defaultView.getComputedStyle( elem, null ).getPropertyValue( styleProp );
-      }
     }
       
     function makeSwf( self, vidId, containerId ) {