From 90c273ae215f13ec3af915918c19277d1a493122 Mon Sep 17 00:00:00 2001 From: Jason Baker Date: Thu, 22 Feb 2024 12:20:01 -0800 Subject: [PATCH] perf(examples): refactor JS examples --- demo/api.html | 2 +- demo/api.js | 4 ++-- demo/index.js | 4 ++-- package-lock.json | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/demo/api.html b/demo/api.html index 1fe07d8..d48a655 100644 --- a/demo/api.html +++ b/demo/api.html @@ -42,7 +42,7 @@ diff --git a/demo/api.js b/demo/api.js index dac7037..1d34bd8 100644 --- a/demo/api.js +++ b/demo/api.js @@ -1,6 +1,6 @@ import { showToast } from '../apiExamples/showToast'; -export function initToastApiExamples(initCount) { +export function initExamples(initCount) { initCount = initCount || 0; try { @@ -10,7 +10,7 @@ export function initToastApiExamples(initCount) { if (initCount <= 20) { // setTimeout handles issue where content is sometimes loaded after the functions get called setTimeout(() => { - initToastApiExamples(initCount + 1); + initExamples(initCount + 1); }, 100); } } diff --git a/demo/index.js b/demo/index.js index 0cbca0d..1d34bd8 100644 --- a/demo/index.js +++ b/demo/index.js @@ -1,6 +1,6 @@ import { showToast } from '../apiExamples/showToast'; -export function initToastIndexExamples(initCount) { +export function initExamples(initCount) { initCount = initCount || 0; try { @@ -10,7 +10,7 @@ export function initToastIndexExamples(initCount) { if (initCount <= 20) { // setTimeout handles issue where content is sometimes loaded after the functions get called setTimeout(() => { - initToastIndexExamples(initCount + 1); + initExamples(initCount + 1); }, 100); } } diff --git a/package-lock.json b/package-lock.json index bf1cad4..bc36e55 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@aurodesignsystem/auro-toast", - "version": "1.1.3", + "version": "1.1.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@aurodesignsystem/auro-toast", - "version": "1.1.3", + "version": "1.1.4", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": {