Merge pull request +9026 from c9/fix/various

[Trivial] code style
pull/142/head
Lennart Kats 2015-09-01 14:54:39 +02:00
commit a5a9008c8e
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -960,8 +960,10 @@ 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.$ext.previousSibling != amlNode.previousSibling.$ext)
if (!amlNode.previousSibling || !amlNode.previousSibling.$ext || amlNode.$ext)
continue;
if (amlNode.$ext.previousSibling == amlNode.previousSibling.$ext)
continue;
if (amlNode.$ext.parentNode == amlNode.previousSibling.$ext.parentNode)
amlNode.$ext.parentNode.insertBefore(amlNode.$ext, amlNode.previousSibling.$ext.nextSibling);
}