Skip to content

Commit

Permalink
chore: rename generatePlaceholderMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
DonNicoJs committed Oct 11, 2020
1 parent e5cb02f commit 40a82a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/LMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
propsBinder,
debounce,
resetWebpackIcon,
generateMethodsPlaceholder,
generatePlaceholderMethods,
} from "../utils.js";
export default {
Expand Down Expand Up @@ -169,7 +169,7 @@ export default {
markerZoomAnimation: props.markerZoomAnimation,
};
const schematics = generateMethodsPlaceholder([
const schematics = generatePlaceholderMethods([
"addLayer",
"removeLayer",
"registerLayerControl",
Expand Down
4 changes: 2 additions & 2 deletions src/components/LMarker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
remapEvents,
propsBinder,
debounce,
generateMethodsPlaceholder,
generatePlaceholderMethods,
} from "../utils.js";
import { props, setup as markerSetup } from "../functions/marker";
Expand All @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] = () =>
Expand Down

0 comments on commit 40a82a0

Please sign in to comment.