[commit #11368] returning DOM element from displayTiddler

0 views
Skip to first unread message

s...@tiddlywiki.org

unread,
Jan 4, 2010, 5:05:28 AM1/4/10
to
http://trac.tiddlywiki.org/changeset/11368

FND
2010-01-04 02:05:28 -0800 (Mon, 04 Jan 2010)
237
returning DOM element from displayTiddler

This is a quick enhancement to satisfy a specific request, without
paying much attention to API consistency (e.g. displayTiddlers might
return a collection of DOM elements); YAGNI.

ticket #1141

---------------

U Trunk/core/js/Story.js

---------------

Modified: Trunk/core/js/Story.js
===================================================================
--- Trunk/core/js/Story.js 2010-01-04 09:10:39 UTC (rev 11367)
+++ Trunk/core/js/Story.js 2010-01-04 10:05:28 UTC (rev 11368)
@@ -99,6 +99,7 @@
else
window.scrollTo(0,ensureVisible(tiddlerElem));
}
+ return tiddlerElem;
};

//# Figure out the appropriate position for a newly opened tiddler

Reply all
Reply to author
Forward
0 new messages