]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#421] removed getStyle from vimeo
authorScottDowne <sdowne@learn.senecac.on.ca>
Tue, 17 May 2011 19:30:53 +0000 (15:30 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Tue, 17 May 2011 19:30:53 +0000 (15:30 -0400)
players/vimeo/popcorn.vimeo.html
players/vimeo/popcorn.vimeo.js

index a55c36fff54dbf23ad043333b51eeaa6faf6b356..781fe7d6fa2e46c455a4cd2b0bd0532482235c17 100644 (file)
           <br />
           
     </body>
-</html>
\ No newline at end of file
+</html>
index 012f3091ac276a5d7f605d9d97ed0fb6efef876d..0007c8c88f912257a1ee5c75b200182db3968959 100644 (file)
       var matches = url.match( rWebUrl );
       return matches ? matches[0].substr(10) : "";
     }
-    
-    // Gets the style for the given element
-    function getStyle( elem, styleProp ) {
-      return elem.style[styleProp];
-    }
       
     function makeSwf( self, vidId, containerId ) {
       if ( !window.swfobject ) {
       this.evtHolder = new EventManager( this );
       
       // For calculating position relative to video (like subtitles)
-      this.width = options.width || getStyle( this._target, "width" ) || "504px";
-      this.height = options.height || getStyle( this._target, "height" ) || "340px";
-      
+      this.width = options.width || this._target.style.width || "504px";
+      this.height = options.height || this._target.style.height || "340px";
+
       if ( !/[\d]%/.test( this.width ) ) {
         this.offsetWidth = parseInt( this.width, 10 );
         this._target.style.width = this.width + "px";