js.createNS: Difference between revisions
Jump to navigation
Jump to search
m (Cleaned up syntax/grammar) |
m (Cleaned up syntax/grammar) |
(No difference)
|
Latest revision as of 23:59, 7 July 2023
This article describes a feature or macro function that is experimental and may be subject to change.
js.createNS() Function
• Introduced in version 1.10.0
Create (or recreate) a JavaScript namespace.
Usage
js.createNS(namespace)
js.createNS(namespace, trusted)
Parameters
namespace
- The namespace to (re)create. If the namespace already exists, this must be called from a trusted context.trusted
- If the namespace created should be a trusted namespace. Defaults totrue
(1
) if called from a trusted context.
Example
Using
js.createNS
on an expression
.
[r: js.createNS("demo", true)]