node-red-nodes icon indicating copy to clipboard operation
node-red-nodes copied to clipboard

Move all client scripts of mongo nodes (and the shared function) to iife

Open Steve-Mcl opened this issue 3 years ago • 0 comments

fixes #909

Types of changes

  • [x] Bugfix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)

Proposed changes

Prevent global pollution with other nodes that have a global scope oneditprepare function by wrapping this nodes scripts & oneditprepare (shared function) into a single IIFE

Checklist

  • [x] I have read the contribution guidelines
  • [ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
  • [ ] I have run grunt to verify the unit tests pass
  • [ ] I have added suitable unit tests to cover the new/changed functionality

Steve-Mcl avatar May 12 '22 21:05 Steve-Mcl