Permalink
Browse files

WP Plugin Pre-release tweaks

  • Loading branch information...
1 parent 4d879cd commit 263e919e5c3c62e9e5c71171e9f75e5d1a513a01 @samcleaver samcleaver committed Jul 13, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 wp_infinite_scroll.php
@@ -230,12 +230,14 @@ function wp_inf_scroll_init()
else
echo "<script type=\"text/javascript\" src=\"$plugin_dir/jquery.infinitescroll.min.js\"></script>";
echo "<script type=\"text/javascript\">
+ //We leave a function outside the infinite-scroll area so that it works with older jQuery versions
function infinite_scroll_callback() {
$js_calls
}
jQuery(document).ready(function($) {
// Infinite Scroll jQuery+Wordpress plugin
- jQuery('$content_selector').infinitescroll({
+ // Now we're inside, we should be able to use $ again
+ $('$content_selector').infinitescroll({
debug : $debug,
loading : {
img : \"$loading_image\",

0 comments on commit 263e919

Please sign in to comment.