Skip to content

Commit

Permalink
Updated video tag attribute setting to not include null values.
Browse files Browse the repository at this point in the history
  • Loading branch information
heff committed Jan 31, 2012
1 parent 1eda892 commit 32c9ecf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tech.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ _V_.html5 = _V_.PlaybackTech.extend({

// Update tag settings, in case they were overridden
_V_.each(["autoplay","preload","loop","muted"], function(attr){ // ,"poster"
el[attr] = player.options[attr];
if (player.options[attr] !== null) {
el[attr] = player.options[attr];
}
}, this);

return el;
Expand Down

0 comments on commit 32c9ecf

Please sign in to comment.