mirror of
https://github.com/videojs/video.js.git
synced 2025-01-19 10:54:16 +02:00
Merge pull request #314 from Sundrique/313-attributes
313 Save all video tag attributes while moving media element in DOM
This commit is contained in:
commit
0373d15c2f
@ -65,14 +65,13 @@ vjs.Html5.prototype.createEl = function(){
|
|||||||
// If the original tag is still there, remove it.
|
// If the original tag is still there, remove it.
|
||||||
if (el) {
|
if (el) {
|
||||||
player.el().removeChild(el);
|
player.el().removeChild(el);
|
||||||
}
|
el = el.cloneNode(false);
|
||||||
|
} else {
|
||||||
newEl = vjs.createElement('video', {
|
el = vjs.createEl('video', {
|
||||||
id: el.id || player.id() + '_html5_api',
|
id:player.id() + '_html5_api',
|
||||||
className: el.className || 'vjs-tech'
|
className:'vjs-tech'
|
||||||
});
|
});
|
||||||
|
}
|
||||||
el = newEl;
|
|
||||||
vjs.insertFirst(el, player.el());
|
vjs.insertFirst(el, player.el());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user