http://trac.tiddlywiki.org/changeset/12202
MartinBudden
2010-06-10 06:43:26 -0700 (Thu, 10 Jun 2010)
85
Ticket #1230
Story.prototype.findContainingTiddler does not handle empty popup stack
---------------
U Trunk/core/js/Story.js
---------------
Modified: Trunk/core/js/Story.js
===================================================================
--- Trunk/core/js/Story.js 2010-06-10 11:06:39 UTC (rev 12201)
+++ Trunk/core/js/Story.js 2010-06-10 13:43:26 UTC (rev 12202)
@@ -517,8 +517,9 @@
//# returns: reference to a tiddler element or null if none
Story.prototype.findContainingTiddler = function(e)
{
- while(e && !hasClass(e,"tiddler"))
- e = hasClass(e,"popup") ? Popup.stack[0].root : e.parentNode;
+ while(e && !hasClass(e,"tiddler")) {
+ e = hasClass(e,"popup") && Popup.stack[0] ? Popup.stack[0].root
: e.parentNode;
+ }
return e;
};
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywikidev?hl=en.