We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88838bf commit 8b1d76dCopy full SHA for 8b1d76d
1 file changed
src/PluginManager.js
@@ -12,6 +12,13 @@ export default {
12
plugin[option] = defaults[option];
13
}
14
15
+
16
+ plugins.forEach(p => {
17
+ if (p.pluginName === plugin.pluginName) {
18
+ throw (`Sortable: Cannot mount plugin ${ plugin.pluginName } more than once`);
19
+ }
20
+ });
21
22
plugins.push(plugin);
23
},
24
pluginEvent(eventName, sortable, evt) {
0 commit comments