summaryrefslogtreecommitdiffstats
path: root/readmore.js
diff options
context:
space:
mode:
authorAru Sahni <arusahni@gmail.com>2015-03-21 16:59:44 -0400
committerAru Sahni <arusahni@gmail.com>2015-03-21 16:59:44 -0400
commitb595fd4936e956e7549194d96e8b59b60ca2ac8e (patch)
treedef133572e3390e1f9ea46b53a346cdbe2fe9a2a /readmore.js
parentd848952d57c12bef136888d39bc709c3d7532734 (diff)
downloadReadmore.js-b595fd4936e956e7549194d96e8b59b60ca2ac8e.zip
Readmore.js-b595fd4936e956e7549194d96e8b59b60ca2ac8e.tar.gz
Readmore.js-b595fd4936e956e7549194d96e8b59b60ca2ac8e.tar.bz2
Fix bug with the open start state.
Readmore doesn't check everywhere for the default open state on init. Before this fix, the toggle link text would use the `lessLink` content, but the Readmore element would display using the collapsed style.
Diffstat (limited to 'readmore.js')
-rw-r--r--readmore.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/readmore.js b/readmore.js
index cbfea57..4d5084d 100644
--- a/readmore.js
+++ b/readmore.js
@@ -187,7 +187,7 @@
current.attr({
'data-readmore': '',
- 'aria-expanded': false,
+ 'aria-expanded': $this.options.startOpen,
'id': id
});