Ticket #946 (closed enhancement: wontfix)

Opened 4 years ago

Last modified 4 years ago

plugin invocation: explicit access to originating tiddler

Reported by: FND Owned by: JeremyRuston
Priority: major Milestone: 2.6
Component: core Version:
Severity: low Keywords:
Cc:

Description

When evaluating JavaScript? code from a systemConfig tiddler, there should be an explicit contract for the the respective tiddler object to be passed in (e.g. by wrapping the invocation in a closure).

While this is already possible using the tiddler object from the parent scope (loadPlugins), that seems accidental and fairly brittle (e.g. if there is a local tiddler variable).

Change History

Changed 4 years ago by FND

Example use case: changeset:8843

Changed 4 years ago by FND

  • milestone changed from 2.5.1 to 2.5.2

Changed 4 years ago by FND

loadPlugins should be refactored to call an invokePlugin function.

Changed 4 years ago by FND

  • milestone changed from 2.5.3 to 2.5.4

Changed 4 years ago by MartinBudden

  • status changed from new to closed
  • resolution set to wontfix

It's not worth changing the current contract with plugins.

Note: See TracTickets for help on using tickets.