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