Skip to content

Commit

Permalink
Remove duped initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jan 24, 2025
1 parent 5963351 commit e2c8e93
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion assets/js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { settingsStore } from './settings-store'
*/

window.addEventListener('exdoc:loaded', initialize)
initialize()

function initialize () {
const notebookPath = window.location.pathname.replace(/(\.html)?$/, '.livemd')
Expand Down
1 change: 0 additions & 1 deletion assets/js/copy-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ let buttonTemplate
*/

window.addEventListener('exdoc:loaded', initialize)
initialize()

function initialize () {
if (!('clipboard' in navigator)) return
Expand Down
1 change: 0 additions & 1 deletion assets/js/makeup.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const HIGHLIGHT_CLASS = 'hll'
*/

window.addEventListener('exdoc:loaded', initialize)
initialize()

export function initialize () {
// Hovering over a delimiter (bracket, parenthesis, do/end)
Expand Down
1 change: 0 additions & 1 deletion assets/js/quick-switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ const state = {

if (!isEmbedded) {
window.addEventListener('exdoc:loaded', initialize)
initialize()
}

function initialize () {
Expand Down
1 change: 0 additions & 1 deletion assets/js/search-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const SEARCH_CLOSE_BUTTON_SELECTOR = 'form.search-bar .search-close-button'

if (!isEmbedded) {
window.addEventListener('exdoc:loaded', initialize)
initialize()
}

function initialize () {
Expand Down
1 change: 0 additions & 1 deletion assets/js/search-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ lunr.Pipeline.registerFunction(docTrimmerFunction, 'docTrimmer')
*/

window.addEventListener('exdoc:loaded', initialize)
initialize()

function initialize () {
const pathname = window.location.pathname
Expand Down
1 change: 0 additions & 1 deletion assets/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const modalTabs = [
*/

window.addEventListener('exdoc:loaded', initialize)
initialize()

function initialize () {
qsAll(SETTINGS_LINK_SELECTOR).forEach(element => {
Expand Down
1 change: 0 additions & 1 deletion assets/js/tabsets.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const TABPANEL_HEADING_NODENAME = 'H3'
const TABSET_CONTAINER_CLASS = 'tabset'

window.addEventListener('exdoc:loaded', initialize)
initialize()

function initialize () {
/** @type {[Node, [NodeList, HTMLElement[]][]][]} */
Expand Down
1 change: 0 additions & 1 deletion assets/js/tooltips/tooltips.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const state = {
*/

window.addEventListener('exdoc:loaded', initialize)
initialize()

function initialize () {
qsAll(TOOLTIP_ACTIVATORS_SELECTOR).forEach(element => {
Expand Down

0 comments on commit e2c8e93

Please sign in to comment.