1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-11 18:00:26 +00:00

Clarify widget constructor docs

This commit is contained in:
Jermolene 2014-07-25 15:26:53 +01:00
parent be040ea8a2
commit 40b4259e86

View File

@ -18,11 +18,8 @@ Create a widget object for a parse tree node
options: see below options: see below
Options include: Options include:
wiki: mandatory reference to wiki associated with this render tree wiki: mandatory reference to wiki associated with this render tree
variables: optional hashmap of context variables (see below)
parentWidget: optional reference to a parent renderer node for the context chain parentWidget: optional reference to a parent renderer node for the context chain
document: optional document object to use instead of global document document: optional document object to use instead of global document
Context variables include:
currentTiddler: title of the tiddler providing the context
*/ */
var Widget = function(parseTreeNode,options) { var Widget = function(parseTreeNode,options) {
if(arguments.length > 0) { if(arguments.length > 0) {