mirror of
https://github.com/videojs/video.js.git
synced 2024-12-02 09:11:54 +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 (el) {
|
||||
player.el().removeChild(el);
|
||||
el = el.cloneNode(false);
|
||||
} else {
|
||||
el = vjs.createEl('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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user