This commit is contained in:
nightwing 2015-09-01 19:27:32 +00:00
parent 0159d53047
commit c81eae9b8a

View File

@ -960,7 +960,7 @@ apf.menu = function(struct, tagName){
if (!amlNode.$amlLoaded)
amlNode.dispatchEvent("DOMNodeInsertedIntoDocument");
// sometimes DOMNodeInsertedIntoDocument event handler puts $ext at the end of the popup
if (!amlNode.previousSibling || !amlNode.previousSibling.$ext || amlNode.$ext)
if (!amlNode.previousSibling || !amlNode.previousSibling.$ext || !amlNode.$ext)
continue;
if (amlNode.$ext.previousSibling == amlNode.previousSibling.$ext)
continue;