summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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});
}
}
});