prf: InitDatasette -> datasette_init for case sensitivity / using prefix to namespace instead of suffix

pull/2052/head
Cameron Yick 2023-04-20 00:55:56 -04:00
rodzic 2d92b93280
commit 37d7e3f320
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1,6 +1,6 @@
// Custom events for use with the native CustomEvent API
const DATASETTE_EVENTS = {
INIT: "InitDatasette", // returns datasette manager instance in evt.detail
INIT: "datasette_init", // returns datasette manager instance in evt.detail
}
// Datasette "core" -> Methods/APIs that are foundational

Wyświetl plik

@ -2,7 +2,7 @@
* Example usage of Datasette JS Manager API
*/
document.addEventListener("InitDatasette", function (evt) {
document.addEventListener("datasette_init", function (evt) {
const { detail: manager } = evt;
// === Demo plugins: remove before merge===
addPlugins(manager);

Wyświetl plik

@ -302,7 +302,7 @@ function initAutocompleteForFilterValues(manager) {
};
// Ensures Table UI is initialized only after the Manager is ready.
document.addEventListener("InitDatasette", function (evt) {
document.addEventListener("datasette_init", function (evt) {
const { detail: manager } = evt;
// Main table