summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJed Foster <jed@jedfoster.com>2015-10-31 23:57:27 -0700
committerJed Foster <jed@jedfoster.com>2015-10-31 23:57:27 -0700
commit0cc1369de01beab9731445e48b2405ded3d920c6 (patch)
treeedbc3b3dd78eb941cfe8ceb9f2e2040db3566815
parent6d2ee68bec37c0af02c549542dec36c607d5ee5f (diff)
downloadReadmore.js-0cc1369de01beab9731445e48b2405ded3d920c6.zip
Readmore.js-0cc1369de01beab9731445e48b2405ded3d920c6.tar.gz
Readmore.js-0cc1369de01beab9731445e48b2405ded3d920c6.tar.bz2
Update README callback example
-rw-r--r--demo.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo.html b/demo.html
index 152d317..a134521 100644
--- a/demo.html
+++ b/demo.html
@@ -223,7 +223,7 @@ article {
collapsedHeight: 384,
afterToggle: function(trigger, element, expanded) {
if(! expanded) { // The "Close" link was clicked
- $('html, body').animate({scrollTop: $(element).offset().top}, {duration: 100});
+ $('html, body').animate({scrollTop: element.offset().top}, {duration: 100});
}
}
});