-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36de6a9
commit 6549b3a
Showing
8 changed files
with
38 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */ | ||
|
||
import { auroMenuResetExample } from '../apiExamples/reset'; | ||
import { auroMenuMatchWordExample } from '../apiExamples/matchWord'; | ||
import { auroMenuCustomEventExample } from '../apiExamples/customEvent'; | ||
|
||
export function initMenuApiExamples(initCount) { | ||
export function initExamples(initCount) { | ||
initCount = initCount || 0; | ||
|
||
try { | ||
// javascript example function calls to be added here upon creation to test examples | ||
auroMenuResetExample(); | ||
auroMenuMatchWordExample(); | ||
auroMenuCustomEventExample(); | ||
} catch { | ||
} catch (err) { | ||
if (initCount <= 20) { | ||
// setTimeout handles issue where content is sometimes loaded after the functions get called | ||
setTimeout(() => { | ||
initMenuApiExamples(initCount + 1); | ||
initExamples(initCount + 1); | ||
}, 100); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
export function initMenuIndexExamples(initCount) { | ||
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */ | ||
|
||
// import { auroMenuResetExample } from '../apiExamples/reset'; | ||
|
||
export function initExamples(initCount) { | ||
initCount = initCount || 0; | ||
|
||
try { | ||
} catch { | ||
// javascript example function calls to be added here upon creation to test examples | ||
// auroMenuResetExample(); | ||
} catch (err) { | ||
if (initCount <= 20) { | ||
// setTimeout handles issue where content is sometimes loaded after the functions get called | ||
setTimeout(() => { | ||
initMenuIndexExamples(initCount + 1); | ||
initExamples(initCount + 1); | ||
}, 100); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
function initMenuIndexExamples(initCount) { | ||
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */ | ||
|
||
// import { auroMenuResetExample } from '../apiExamples/reset'; | ||
|
||
function initExamples(initCount) { | ||
} | ||
|
||
export { initExamples }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.