mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-27 13:34:35 +00:00
Rename the 'setvariable' widget to 'set'
Sleeker.
This commit is contained in:
@@ -228,7 +228,7 @@ describe("Widget module", function() {
|
||||
});
|
||||
});
|
||||
|
||||
it("should deal with the setvariable widget", function() {
|
||||
it("should deal with the set widget", function() {
|
||||
var wiki = new $tw.Wiki();
|
||||
// Add some tiddlers
|
||||
wiki.addTiddlers([
|
||||
@@ -238,7 +238,7 @@ describe("Widget module", function() {
|
||||
{title: "TiddlerFour", text: "TiddlerTwo"}
|
||||
]);
|
||||
// Construct the widget node
|
||||
var text = "My <$setvariable name='currentTiddler' value={{TiddlerFour}}><$transclude tiddler={{!!title}}/></$setvariable> is Jolly"
|
||||
var text = "My <$set name='currentTiddler' value={{TiddlerFour}}><$transclude tiddler={{!!title}}/></$set> is Jolly"
|
||||
var widgetNode = createWidgetNode(parseText(text,wiki),wiki);
|
||||
// Render the widget node to the DOM
|
||||
var wrapper = renderWidgetNode(widgetNode);
|
||||
|
||||
Reference in New Issue
Block a user