mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
JSDocs: Add '-member' to all member div ids, so they won't accidentally collide with css styles (e.g. #index).
This commit is contained in:
parent
d07c95f565
commit
57b7da13ab
5 changed files with 5 additions and 5 deletions
|
@ -208,7 +208,7 @@ function toggleMember(id, scrollTo) {
|
|||
}
|
||||
|
||||
function scrollToElement(id) {
|
||||
var e = $('#' + id);
|
||||
var e = $('#' + id + '-member');
|
||||
if (e) {
|
||||
var offs = e.getOffset();
|
||||
$window.setScrollOffset(offs);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<if test="defined(data.symbol.groupTitle)"><h3>{+data.symbol.groupTitle+}</h3></if>
|
||||
<div id="{+ data.id +}" class="member">
|
||||
<div id="{+ data.id +}-member" class="member">
|
||||
<div id="{+ data.id +}-link" class="member-link">
|
||||
<a name="{+ data.id +}" href="#" onClick="return toggleMember('{+ data.id +}', false);"><tt><b>{+ data.name +}</b>{+ data.signature +}</tt></a>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<if test="defined(data.symbol.groupTitle)">
|
||||
<h3>{+data.symbol.groupTitle+}</h3>
|
||||
</if>
|
||||
<div id="{+ data.id +}" class="member">
|
||||
<div id="{+ data.id +}-member" class="member">
|
||||
<div id="{+ data.id +}-link" class="member-link">
|
||||
<a name="{+ data.id +}" href="#" onClick="return toggleMember('{+ data.id +}', false);"><tt><b>{+ data.name +}</b>{+ data.signature +}</tt></a>
|
||||
</div>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div id="{+ data.id +}" class="member">
|
||||
<div id="{+ data.id +}-member" class="member">
|
||||
<div id="{+ data.id +}-link" class="member-link">
|
||||
<a name="{+ data.id +}" href="#" onClick="return toggleMember('{+ data.id +}', false);"><tt>{+ data.title +}</tt></a>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<if test="defined(data.symbol.groupTitle)">
|
||||
<h3>{+ data.symbol.groupTitle +}</h3>
|
||||
</if>
|
||||
<div id="{+ data.id +}" class="member">
|
||||
<div id="{+ data.id +}-member" class="member">
|
||||
<div id="{+ data.id +}-link" class="member-link">
|
||||
<a name="{+ data.id +}" href="#" onClick="return toggleMember('{+ data.id +}', false);"><tt><b>{+ data.name +}</b></tt></a>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue