mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
wiki.extractTiddlerDataItem() should use caching
This commit is contained in:
parent
b9a835b879
commit
52a414959c
@ -680,7 +680,7 @@ exports.getTiddlerData = function(titleOrTiddler,defaultData) {
|
||||
Extract an indexed field from within a data tiddler
|
||||
*/
|
||||
exports.extractTiddlerDataItem = function(titleOrTiddler,index,defaultText) {
|
||||
var data = this.getTiddlerData(titleOrTiddler,Object.create(null)),
|
||||
var data = this.getTiddlerDataCached(titleOrTiddler,Object.create(null)),
|
||||
text;
|
||||
if(data && $tw.utils.hop(data,index)) {
|
||||
text = data[index];
|
||||
|
Loading…
Reference in New Issue
Block a user