Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
PuruVJ committed Feb 27, 2025
1 parent f1e3f60 commit 8f00c8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,9 +605,7 @@ export function createDraggable({
}

function cleanup_plugins(instance: DraggableInstance, plugins: Plugin[]): void {
const len = plugins.length;
for (let i = 0; i < len; i++) {
const plugin = plugins[i];
for (const plugin of plugins) {
plugin.cleanup?.(instance.ctx, instance.states.get(plugin.name));
instance.states.delete(plugin.name);
}
Expand Down

0 comments on commit 8f00c8f

Please sign in to comment.