... | ... |
@@ -90,7 +90,7 @@ function flashVideoFallback(){ |
90 | 90 |
function wrapFlashVideos() { |
91 | 91 |
$('object').each(function(object) { |
92 | 92 |
object = $(object); |
93 |
- if (object.children('param[name=movie]')) { |
|
93 |
+ if ( $('param[name=movie]', object).length ) { |
|
94 | 94 |
var wrapper = object.before('<div class="flash-video"><div>').previous(); |
95 | 95 |
$(wrapper).children().append(object); |
96 | 96 |
} |