Fixed the docs for noConflict, fixed a bug with pager.

This commit is contained in:
John Resig 2007-01-06 22:34:12 +00:00
parent ab0287681f
commit 458d427c0e
2 changed files with 12 additions and 6 deletions

View file

@ -68,7 +68,9 @@ $.fn.pager = function(step) {
pager = $("<ul class='nav-page'></ul>");
for ( var i = 0; i < names.length; i++ )
$("<a href=''></a>").rel( i ).html( names[i] ).click(function() {
$("<a href=''></a>").attr({
rel: i, innerHTML: names[i]
}).click(function() {
return handleCrop( this.rel );
}).wrap("<li></li>").parent().appendTo(pager);