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

fix children in ff3

ff3 does not support children, only childNodes
This commit is contained in:
Thomas Subera 2012-01-25 17:32:50 +01:00
parent 20d5342da2
commit 304921128c

View File

@ -135,7 +135,8 @@ _V_.Player = _V_.Component.extend({
options.loop = this.tag.getAttribute("loop") !== null;
options.muted = this.tag.getAttribute("muted") !== null;
for (var c,i=0,j=this.tag.children;i<j.length;i++) {
if (this.tag.hasChildNodes()) {
for (var c,i=0,j=this.tag.childNodes;i<j.length;i++) {
c = j[i];
if (c.nodeName == "SOURCE") {
options.sources.push({
@ -157,6 +158,7 @@ _V_.Player = _V_.Component.extend({
}
}
}
return options;
},