Browse code

Fixes child selector for param[name=movie], #168

Frederic Hemberger authored on 24/09/2011 at 10:43:44
Showing 1 changed files
... ...
@@ -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
     }