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:
parent
b9a835b879
commit
52a414959c
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user