Skip to content

Commit

Permalink
Move replaceChild after attributes definition. seems to solve framebo…
Browse files Browse the repository at this point in the history
…rder issue on old ie
  • Loading branch information
dharFr committed Feb 13, 2014
1 parent 36eefb9 commit 88751b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ DM.provide('Player',
var val = element.getAttribute(attr);
if (val) player.setAttribute(attr, val);
});
element.parentNode.replaceChild(player, element);
player.setAttribute("frameborder", "0");
player.setAttribute("allowfullscreen", "true");
player.setAttribute("webkitallowfullscreen", "true");
Expand All @@ -117,6 +116,7 @@ DM.provide('Player',
player.type = "text/html";
player.width = options.width;
player.height = options.height;
element.parentNode.replaceChild(player, element);

DM.copy(player, DM.Player);

Expand Down

0 comments on commit 88751b2

Please sign in to comment.