Browse code

Merge branch 'master' of github.com:imathis/octopress

Brandon Mathis authored on 25/09/2011 at 14:15:14
Showing 1 changed files
... ...
@@ -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
     }