Builder/RightGtkView.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 14 May 2010 09:08:25 +0000 (17:08 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 14 May 2010 09:08:25 +0000 (17:08 +0800)
Builder/RightGtkView.js

index 5b23391..8624497 100755 (executable)
@@ -363,6 +363,9 @@ RightGtkView = new XObject({
                 }
                 if (typeof(i) == 'string' && i[0] == '|') {
                     // does not hapepnd with arrays..
+                    if (!obj[i].length) { //skip empty.
+                        return;
+                    }
                     els.push(JSON.stringify(i.substring(1)) + ":" + obj[i]);
                     return;
                 }