diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js index a23ab50..1b1f90f 100644 --- a/.themes/classic/source/javascripts/octopress.js +++ b/.themes/classic/source/javascripts/octopress.js @@ -89,7 +89,7 @@ function flashVideoFallback(){ function wrapFlashVideos() { $('object').each(function(object) { object = $(object); - if (object.children('param[name=movie]')) { + if ( $('param[name=movie]', object).length ) { var wrapper = object.before('
').previous(); $(wrapper).children().append(object); }