Fix problem with shadow tiddler iteration

See https://groups.google.com/d/topic/tiddlywiki/pNxZsSCVp7c/discussion
for more details of the bug.
print-window-tiddler
Jermolene 2014-05-17 01:12:08 +01:00
rodzic be0bc04929
commit e228ac42db
2 zmienionych plików z 16 dodań i 2 usunięć

Wyświetl plik

@ -915,8 +915,12 @@ $tw.Wiki = function(options) {
// Iterate through all the shadows and then the tiddlers
this.eachShadowPlusTiddlers = function(callback) {
for(var title in shadowTiddlers) {
var shadowInfo = shadowTiddlers[title];
callback(shadowInfo.tiddler,title);
if(Object.prototype.hasOwnProperty.call(tiddlers,title)) {
callback(tiddlers[title],title);
} else {
var shadowInfo = shadowTiddlers[title];
callback(shadowInfo.tiddler,title);
}
}
for(var title in tiddlers) {
if(!Object.prototype.hasOwnProperty.call(shadowTiddlers,title)) {

Wyświetl plik

@ -0,0 +1,10 @@
created: 20140517010234142
modified: 20140517010234142
tags: releasenote
title: Release 5.0.12-beta
type: text/vnd.tiddlywiki
released: 201405170102
//[[See GitHub for detailed change history of this release|https://github.com/Jermolene/TiddlyWiki5/compare/v5.0.11-beta...v5.0.12-beta]]//
This is an emergency release that fixes a single significant bug with shadow tiddler handling in 5.0.11. See the [[discussion thread|https://groups.google.com/d/topic/tiddlywiki/pNxZsSCVp7c/discussion]] for more details.