Skip to content

Commit 4e89dc8

Browse files
authored
fix(docs): correct 'tapPanes' typo (#9109)
Correct `tapPanes` → `tabPanes` in codeWrap template for clarity and consistency with the surrounding tab-related code. Also changed == to === for more strict type checking since we are using 'use strict'.
1 parent 1c92b08 commit 4e89dc8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/src/code.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function codeWrap(){
1212
})
1313
.filter(function(item, index, inputArray){
1414
// Each code block has multiple versions so let's only grab one.
15-
return inputArray.indexOf(item) == index;
15+
return inputArray.indexOf(item) === index;
1616
});
1717

1818
wrap();
@@ -41,7 +41,7 @@ function codeWrap(){
4141
'<a href="#callback">Callbacks</a>' +
4242
'</li>' +
4343
'</ul>' +
44-
'<div class="tab-content">{{tapPanes}}</div>';
44+
'<div class="tab-content">{{tabPanes}}</div>';
4545
codeIds
4646
.forEach(function(id){
4747
var $code = $("[data-code-id='" + id + "']");
@@ -51,7 +51,7 @@ function codeWrap(){
5151
}).join('');
5252

5353
var codeHtml = codeTpl
54-
.replace(/{{tapPanes}}/g, paneHtml)
54+
.replace(/{{tabPanes}}/g, paneHtml)
5555
.replace(/{{codeId}}/g, id);
5656
$code
5757
.first()

0 commit comments

Comments
 (0)