mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Enable unicorn/prefer-prototype-methods rule
This commit is contained in:
@@ -397,7 +397,7 @@ You can activate a list group navigation without writing any JavaScript by simpl
|
||||
Enable tabbable list item via JavaScript (each list item needs to be activated individually):
|
||||
|
||||
```js
|
||||
var triggerTabList = [].slice.call(document.querySelectorAll('#myTab a'))
|
||||
var triggerTabList = Array.prototype.slice.call(document.querySelectorAll('#myTab a'))
|
||||
triggerTabList.forEach(function (triggerEl) {
|
||||
var tabTrigger = new bootstrap.Tab(triggerEl)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user