Unverified Commit 40a82a02 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera
Browse files

chore: rename generatePlaceholderMethods

parent e5cb02fd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ import {
  propsBinder,
  debounce,
  resetWebpackIcon,
  generateMethodsPlaceholder,
  generatePlaceholderMethods,
} from "../utils.js";

export default {
@@ -169,7 +169,7 @@ export default {
      markerZoomAnimation: props.markerZoomAnimation,
    };

    const schematics = generateMethodsPlaceholder([
    const schematics = generatePlaceholderMethods([
      "addLayer",
      "removeLayer",
      "registerLayerControl",
+2 −2
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ import {
  remapEvents,
  propsBinder,
  debounce,
  generateMethodsPlaceholder,
  generatePlaceholderMethods,
} from "../utils.js";
import { props, setup as markerSetup } from "../functions/marker";

@@ -18,7 +18,7 @@ export default {
    const leafletRef = ref({});
    const ready = ref(false);

    const schematics = generateMethodsPlaceholder(["latLng"]);
    const schematics = generatePlaceholderMethods(["latLng"]);

    const lMethods = inject("leafLetMethods");
    const { options, methods } = markerSetup(
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ export const resetWebpackIcon = (Icon) => {
  });
};

export const generateMethodsPlaceholder = (methods) => {
export const generatePlaceholderMethods = (methods) => {
  const base = reactive({});
  return methods.reduce((acc, curr) => {
    acc[curr] = () =>