1
0
mirror of https://github.com/videojs/video.js.git synced 2025-02-08 12:05:47 +02:00

313 Save all video tag attributes while moving media element in DOM

This commit is contained in:
Aleksandr Sandrovskiy 2013-02-05 20:11:45 +03:00 committed by alexsandrovsky
parent a84d1f85b8
commit ecb7fb6b3e

View File

@ -65,14 +65,13 @@ vjs.Html5.prototype.createEl = function(){
// If the original tag is still there, remove it.
if (el) {
player.el().removeChild(el);
el = el.cloneNode(false);
} else {
el = _V_.createElement('video', {
id:player.id() + '_html5_api',
className:'vjs-tech'
});
}
newEl = vjs.createElement('video', {
id: el.id || player.id() + '_html5_api',
className: el.className || 'vjs-tech'
});
el = newEl;
vjs.insertFirst(el, player.el());
}