Fixed bug #12409: t3editor/codecompletion objects still showed up after deleting
authorTobias Liebig <mail@etobi.de>
Tue, 3 Nov 2009 09:47:57 +0000 (09:47 +0000)
committerTobias Liebig <mail@etobi.de>
Tue, 3 Nov 2009 09:47:57 +0000 (09:47 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6318 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/t3editor/jslib/ts_codecompletion/completionresult.js

index b578436..0ddd6f9 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2009-11-03  Tobias Liebig <mail_typo3@etobi.de>
 
        * Fixed bug #9513: t3editor bad line numbering
+       * Fixed bug #12409: t3editor/codecompletion objects still showed up after deleting
 
 2009-11-03  Ernesto Baschny  <ernst@cron-it.de>
 
index 3070f21..28c6218 100644 (file)
@@ -67,7 +67,7 @@ var CompletionResult = function(tsRef,tsTreeNode) {
                var value = currentTsTreeNode.getValue();
                // first get the childNodes of the Node (=properties defined by the user)
                for (key in childNodes) {
-                       if (typeof(childNodes[key].value) != "undefined") {
+                       if (typeof(childNodes[key].value) != "undefined" && childNodes[key].value != null) {
                                propObj = new Object();
                                propObj.word = key;
                                if(tsRef.typeHasProperty(value,childNodes[key].name)){