mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-21 08:50:05 +00:00
Normalise custom event names
This commit is contained in:
@@ -110,10 +110,10 @@ ListWidget.prototype.createListElement = function(title) {
|
||||
children: [this.createListElementMacro(title)],
|
||||
events: [
|
||||
{name: "tw-navigate", handlerFunction: handleEvent},
|
||||
{name: "tw-EditTiddler", handlerFunction: handleEvent},
|
||||
{name: "tw-SaveTiddler", handlerFunction: handleEvent},
|
||||
{name: "tw-CloseTiddler", handlerFunction: handleEvent},
|
||||
{name: "tw-NewTiddler", handlerFunction: handleEvent}
|
||||
{name: "tw-edit-tiddler", handlerFunction: handleEvent},
|
||||
{name: "tw-save-tiddler", handlerFunction: handleEvent},
|
||||
{name: "tw-close-tiddler", handlerFunction: handleEvent},
|
||||
{name: "tw-new-tiddler", handlerFunction: handleEvent}
|
||||
]
|
||||
};
|
||||
};
|
||||
|
||||
@@ -31,10 +31,10 @@ NavigatorWidget.prototype.generate = function() {
|
||||
this.children = this.renderer.renderTree.createRenderers(this.renderer.renderContext,this.renderer.parseTreeNode.children);
|
||||
this.events = [
|
||||
{name: "tw-navigate", handlerObject: this, handlerMethod: "handleNavigateEvent"},
|
||||
{name: "tw-EditTiddler", handlerObject: this, handlerMethod: "handleEditTiddlerEvent"},
|
||||
{name: "tw-SaveTiddler", handlerObject: this, handlerMethod: "handleSaveTiddlerEvent"},
|
||||
{name: "tw-close", handlerObject: this, handlerMethod: "handleCloseTiddlerEvent"},
|
||||
{name: "tw-NewTiddler", handlerObject: this, handlerMethod: "handleNewTiddlerEvent"}
|
||||
{name: "tw-edit-tiddler", handlerObject: this, handlerMethod: "handleEditTiddlerEvent"},
|
||||
{name: "tw-save-tiddler", handlerObject: this, handlerMethod: "handleSaveTiddlerEvent"},
|
||||
{name: "tw-close-tiddler", handlerObject: this, handlerMethod: "handleCloseTiddlerEvent"},
|
||||
{name: "tw-new-tiddler", handlerObject: this, handlerMethod: "handleNewTiddlerEvent"}
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user