1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 09:30:28 +00:00

wiki.extractTiddlerDataItem() should use caching

This commit is contained in:
Jermolene 2017-02-27 22:40:09 +00:00
parent b9a835b879
commit 52a414959c

View File

@ -680,7 +680,7 @@ exports.getTiddlerData = function(titleOrTiddler,defaultData) {
Extract an indexed field from within a data tiddler Extract an indexed field from within a data tiddler
*/ */
exports.extractTiddlerDataItem = function(titleOrTiddler,index,defaultText) { exports.extractTiddlerDataItem = function(titleOrTiddler,index,defaultText) {
var data = this.getTiddlerData(titleOrTiddler,Object.create(null)), var data = this.getTiddlerDataCached(titleOrTiddler,Object.create(null)),
text; text;
if(data && $tw.utils.hop(data,index)) { if(data && $tw.utils.hop(data,index)) {
text = data[index]; text = data[index];