Skip to content

Commit c202878

Browse files
committed
fixed xss vulnerability in docs
1 parent a4cbf37 commit c202878

25 files changed

+138
-37
lines changed

dev/docs/template/tmpl/layout.tmpl

+5-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@
102102

103103
<script>
104104
function openDeeplinkedElement (skipAni) {
105-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
105+
try {
106+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
107+
} catch (e) {
108+
console.warn("ah ah ah! :p");
109+
}
106110
}
107111
$( function () {
108112
$( "#toc" ).toc( {

docs/ScrollMagic.Controller.html

+15-11
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ <h5>Parameters:</h5>
630630

631631
<dt class="tag-source">Source:</dt>
632632
<dd class="tag-source"><ul class="dummy"><li>
633-
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-286">line 286</a>
633+
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-287">line 287</a>
634634
</li></ul></dd>
635635

636636

@@ -789,7 +789,7 @@ <h5>Parameters:</h5>
789789

790790
<dt class="tag-source">Source:</dt>
791791
<dd class="tag-source"><ul class="dummy"><li>
792-
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-657">line 657</a>
792+
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-658">line 658</a>
793793
</li></ul></dd>
794794

795795

@@ -931,7 +931,7 @@ <h5>Parameters:</h5>
931931

932932
<dt class="tag-source">Source:</dt>
933933
<dd class="tag-source"><ul class="dummy"><li>
934-
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-329">line 329</a>
934+
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-330">line 330</a>
935935
</li></ul></dd>
936936

937937

@@ -1122,7 +1122,7 @@ <h5>Parameters:</h5>
11221122

11231123
<dt class="tag-source">Source:</dt>
11241124
<dd class="tag-source"><ul class="dummy"><li>
1125-
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-476">line 476</a>
1125+
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-477">line 477</a>
11261126
</li></ul></dd>
11271127

11281128

@@ -1282,7 +1282,7 @@ <h5>Parameters:</h5>
12821282

12831283
<dt class="tag-source">Source:</dt>
12841284
<dd class="tag-source"><ul class="dummy"><li>
1285-
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-407">line 407</a>
1285+
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-408">line 408</a>
12861286
</li></ul></dd>
12871287

12881288

@@ -1476,7 +1476,7 @@ <h5>Parameters:</h5>
14761476

14771477
<dt class="tag-source">Source:</dt>
14781478
<dd class="tag-source"><ul class="dummy"><li>
1479-
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-368">line 368</a>
1479+
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-369">line 369</a>
14801480
</li></ul></dd>
14811481

14821482

@@ -1631,7 +1631,7 @@ <h5>Parameters:</h5>
16311631

16321632
<dt class="tag-source">Source:</dt>
16331633
<dd class="tag-source"><ul class="dummy"><li>
1634-
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-633">line 633</a>
1634+
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-634">line 634</a>
16351635
</li></ul></dd>
16361636

16371637

@@ -1785,7 +1785,7 @@ <h5>Parameters:</h5>
17851785

17861786
<dt class="tag-source">Source:</dt>
17871787
<dd class="tag-source"><ul class="dummy"><li>
1788-
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-607">line 607</a>
1788+
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-608">line 608</a>
17891789
</li></ul></dd>
17901790

17911791

@@ -1943,7 +1943,7 @@ <h5>Parameters:</h5>
19431943

19441944
<dt class="tag-source">Source:</dt>
19451945
<dd class="tag-source"><ul class="dummy"><li>
1946-
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-541">line 541</a>
1946+
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-542">line 542</a>
19471947
</li></ul></dd>
19481948

19491949

@@ -2109,7 +2109,7 @@ <h5>Parameters:</h5>
21092109

21102110
<dt class="tag-source">Source:</dt>
21112111
<dd class="tag-source"><ul class="dummy"><li>
2112-
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-574">line 574</a>
2112+
<a href="ScrollMagic_Controller.js.html">ScrollMagic/Controller.js</a>, <a href="ScrollMagic_Controller.js.html#sunlight-1-line-575">line 575</a>
21132113
</li></ul></dd>
21142114

21152115

@@ -2214,7 +2214,11 @@ <h5>Example</h5>
22142214

22152215
<script>
22162216
function openDeeplinkedElement (skipAni) {
2217-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
2217+
try {
2218+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
2219+
} catch (e) {
2220+
console.warn("ah ah ah! :p");
2221+
}
22182222
}
22192223
$( function () {
22202224
$( "#toc" ).toc( {

docs/ScrollMagic.Scene.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -7210,7 +7210,11 @@ <h5>Example</h5>
72107210

72117211
<script>
72127212
function openDeeplinkedElement (skipAni) {
7213-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
7213+
try {
7214+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
7215+
} catch (e) {
7216+
console.warn("ah ah ah! :p");
7217+
}
72147218
}
72157219
$( function () {
72167220
$( "#toc" ).toc( {

docs/ScrollMagic.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,11 @@ <h3 class="subsection-title">Classes</h3>
265265

266266
<script>
267267
function openDeeplinkedElement (skipAni) {
268-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
268+
try {
269+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
270+
} catch (e) {
271+
console.warn("ah ah ah! :p");
272+
}
269273
}
270274
$( function () {
271275
$( "#toc" ).toc( {

docs/ScrollMagic.js.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,11 @@ <h1 class="page-title">Source: ScrollMagic.js</h1>
231231

232232
<script>
233233
function openDeeplinkedElement (skipAni) {
234-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
234+
try {
235+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
236+
} catch (e) {
237+
console.warn("ah ah ah! :p");
238+
}
235239
}
236240
$( function () {
237241
$( "#toc" ).toc( {

docs/ScrollMagic_Controller.js.html

+7-2
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ <h1 class="page-title">Source: ScrollMagic/Controller.js</h1>
232232
_options.container.addEventListener("resize", onChange);
233233
_options.container.addEventListener("scroll", onChange);
234234

235-
_options.refreshInterval = parseInt(_options.refreshInterval) || DEFAULT_OPTIONS.refreshInterval;
235+
var ri = parseInt(_options.refreshInterval, 10);
236+
_options.refreshInterval = _util.type.Number(ri) ? ri : DEFAULT_OPTIONS.refreshInterval;
236237
scheduleRefresh();
237238

238239
log(3, "added new " + NAMESPACE + " controller (v" + ScrollMagic.version + ")");
@@ -863,7 +864,11 @@ <h1 class="page-title">Source: ScrollMagic/Controller.js</h1>
863864

864865
<script>
865866
function openDeeplinkedElement (skipAni) {
866-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
867+
try {
868+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
869+
} catch (e) {
870+
console.warn("ah ah ah! :p");
871+
}
867872
}
868873
$( function () {
869874
$( "#toc" ).toc( {

docs/ScrollMagic_Scene.js.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,11 @@ <h1 class="page-title">Source: ScrollMagic/Scene.js</h1>
296296

297297
<script>
298298
function openDeeplinkedElement (skipAni) {
299-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
299+
try {
300+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
301+
} catch (e) {
302+
console.warn("ah ah ah! :p");
303+
}
300304
}
301305
$( function () {
302306
$( "#toc" ).toc( {

docs/ScrollMagic_Scene_core.js.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,11 @@ <h1 class="page-title">Source: ScrollMagic/Scene/core.js</h1>
509509

510510
<script>
511511
function openDeeplinkedElement (skipAni) {
512-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
512+
try {
513+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
514+
} catch (e) {
515+
console.warn("ah ah ah! :p");
516+
}
513517
}
514518
$( function () {
515519
$( "#toc" ).toc( {

docs/ScrollMagic_Scene_event-management.js.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,11 @@ <h1 class="page-title">Source: ScrollMagic/Scene/event-management.js</h1>
532532

533533
<script>
534534
function openDeeplinkedElement (skipAni) {
535-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
535+
try {
536+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
537+
} catch (e) {
538+
console.warn("ah ah ah! :p");
539+
}
536540
}
537541
$( function () {
538542
$( "#toc" ).toc( {

docs/ScrollMagic_Scene_feature-classToggles.js.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,11 @@ <h1 class="page-title">Source: ScrollMagic/Scene/feature-classToggles.js</h1>
257257

258258
<script>
259259
function openDeeplinkedElement (skipAni) {
260-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
260+
try {
261+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
262+
} catch (e) {
263+
console.warn("ah ah ah! :p");
264+
}
261265
}
262266
$( function () {
263267
$( "#toc" ).toc( {

docs/ScrollMagic_Scene_feature-pinning.js.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,11 @@ <h1 class="page-title">Source: ScrollMagic/Scene/feature-pinning.js</h1>
574574

575575
<script>
576576
function openDeeplinkedElement (skipAni) {
577-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
577+
try {
578+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
579+
} catch (e) {
580+
console.warn("ah ah ah! :p");
581+
}
578582
}
579583
$( function () {
580584
$( "#toc" ).toc( {

docs/ScrollMagic_Scene_getters-setters.js.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,11 @@ <h1 class="page-title">Source: ScrollMagic/Scene/getters-setters.js</h1>
478478

479479
<script>
480480
function openDeeplinkedElement (skipAni) {
481-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
481+
try {
482+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
483+
} catch (e) {
484+
console.warn("ah ah ah! :p");
485+
}
482486
}
483487
$( function () {
484488
$( "#toc" ).toc( {

docs/ScrollMagic__util.js.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,11 @@ <h1 class="page-title">Source: ScrollMagic/_util.js</h1>
449449

450450
<script>
451451
function openDeeplinkedElement (skipAni) {
452-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
452+
try {
453+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
454+
} catch (e) {
455+
console.warn("ah ah ah! :p");
456+
}
453457
}
454458
$( function () {
455459
$( "#toc" ).toc( {

docs/animation.GSAP.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,11 @@ <h5>Example</h5>
10331033

10341034
<script>
10351035
function openDeeplinkedElement (skipAni) {
1036-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
1036+
try {
1037+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
1038+
} catch (e) {
1039+
console.warn("ah ah ah! :p");
1040+
}
10371041
}
10381042
$( function () {
10391043
$( "#toc" ).toc( {

docs/animation.Velocity.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,11 @@ <h5>Example</h5>
623623

624624
<script>
625625
function openDeeplinkedElement (skipAni) {
626-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
626+
try {
627+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
628+
} catch (e) {
629+
console.warn("ah ah ah! :p");
630+
}
627631
}
628632
$( function () {
629633
$( "#toc" ).toc( {

docs/classes.list.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -3030,7 +3030,11 @@ <h5>Example</h5>
30303030

30313031
<script>
30323032
function openDeeplinkedElement (skipAni) {
3033-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
3033+
try {
3034+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
3035+
} catch (e) {
3036+
console.warn("ah ah ah! :p");
3037+
}
30343038
}
30353039
$( function () {
30363040
$( "#toc" ).toc( {

docs/debug.addIndicators.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,11 @@ <h5>Example</h5>
950950

951951
<script>
952952
function openDeeplinkedElement (skipAni) {
953-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
953+
try {
954+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
955+
} catch (e) {
956+
console.warn("ah ah ah! :p");
957+
}
954958
}
955959
$( function () {
956960
$( "#toc" ).toc( {

docs/framework.jQuery.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,11 @@ <h3 class="subsection-title">Requires</h3>
272272

273273
<script>
274274
function openDeeplinkedElement (skipAni) {
275-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
275+
try {
276+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
277+
} catch (e) {
278+
console.warn("ah ah ah! :p");
279+
}
276280
}
277281
$( function () {
278282
$( "#toc" ).toc( {

docs/index.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ <h2>Availability</h2><p>To get your copy of ScrollMagic you have the choice betw
196196
<p><strong>Option 1: GitHub</strong><br>Download a zip file containing the source code, demo page, all examples and documentation from the <a href="https://github.com/janpaepke/ScrollMagic/releases">GitHub releases page</a> or clone the package to your machine using the git command line interface:</p>
197197
<pre class="prettyprint source lang-bash"><code>git clone git://github.com/janpaepke/ScrollMagic.git</code></pre><p><strong>Option 2: Bower</strong><br>ScrollMagic is also <a href="http://bower.io/search/?q=scrollmagic">available on bower</a> and will only install the necessary source code, ignoring all example and documentation files.<br>Please mind that since they are not core dependencies, you will have to add frameworks like GSAP, jQuery or Velocity manually, should you choose to use them.</p>
198198
<pre class="prettyprint source lang-bash"><code>bower install scrollmagic</code></pre><p><strong>Option 3: npm</strong><br>If you prefer the <a href="https://www.npmjs.com/package/scrollmagic">node package manager</a>, feel free to use it.<br>Keep in mind that like with bower non-crucial files will be ignored (see above).</p>
199-
<pre class="prettyprint source lang-bash"><code>npm install scrollmagic</code></pre><p><strong>Option 4: CDN</strong><br>If you don't want to host ScrollMagic yourself, you can include it from <a href="https://cdnjs.com/libraries/scrollmagic">cdnjs</a>:</p>
199+
<pre class="prettyprint source lang-bash"><code>npm install scrollmagic</code></pre><p><strong>Option 4: CDN</strong><br>If you don't want to host ScrollMagic yourself, you can include it from <a href="https://cdnjs.com/libraries/ScrollMagic">cdnjs</a>:</p>
200200
<pre class="prettyprint source"><code>http://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/ScrollMagic.min.js</code></pre><p>All plugins and uncompressed files are also available on cdnjs.<br>For example:</p>
201201
<pre class="prettyprint source"><code>http://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/plugins/debug.addIndicators.js
202202
http://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/plugins/debug.addIndicators.min.js</code></pre><h2>Installation</h2><p>Include the <strong>core</strong> library in your HTML file:</p>
@@ -285,7 +285,11 @@ <h2>Thanks</h2><p>This library was made possible by many people who have support
285285

286286
<script>
287287
function openDeeplinkedElement (skipAni) {
288-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
288+
try {
289+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
290+
} catch (e) {
291+
console.warn("ah ah ah! :p");
292+
}
289293
}
290294
$( function () {
291295
$( "#toc" ).toc( {

docs/mixins.list.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -3030,7 +3030,11 @@ <h5>Example</h5>
30303030

30313031
<script>
30323032
function openDeeplinkedElement (skipAni) {
3033-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
3033+
try {
3034+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
3035+
} catch (e) {
3036+
console.warn("ah ah ah! :p");
3037+
}
30343038
}
30353039
$( function () {
30363040
$( "#toc" ).toc( {

docs/namespaces.list.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -3030,7 +3030,11 @@ <h5>Example</h5>
30303030

30313031
<script>
30323032
function openDeeplinkedElement (skipAni) {
3033-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
3033+
try {
3034+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
3035+
} catch (e) {
3036+
console.warn("ah ah ah! :p");
3037+
}
30343038
}
30353039
$( function () {
30363040
$( "#toc" ).toc( {

docs/plugins_animation.gsap.js.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,11 @@ <h1 class="page-title">Source: plugins/animation.gsap.js</h1>
494494

495495
<script>
496496
function openDeeplinkedElement (skipAni) {
497-
$("dt h4.member-collapsed[id='" + window.location.hash.substring(1).replace(":", "\\:") +"']").trigger("click", skipAni);
497+
try {
498+
$("dt h4.member-collapsed").filter(window.location.hash.substring(1).replace(":", "\\:")).trigger("click", skipAni);
499+
} catch (e) {
500+
console.warn("ah ah ah! :p");
501+
}
498502
}
499503
$( function () {
500504
$( "#toc" ).toc( {

0 commit comments

Comments
 (0)