From 10e9dc3bf5ae60e63d33b4d1a66cf64fe83796cd Mon Sep 17 00:00:00 2001 From: "Attila Cs.Nagy" Date: Thu, 8 Mar 2012 13:59:50 +0100 Subject: [PATCH 1/2] refresh blur problem --- src/plugins/Relationship.as | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/Relationship.as b/src/plugins/Relationship.as index 1dd84a0..6ba92b5 100644 --- a/src/plugins/Relationship.as +++ b/src/plugins/Relationship.as @@ -324,7 +324,7 @@ package plugins { var node:NodeViewController = new NodeViewController(new NodeDataObject(children[idx].node, NodeType.NODE, ConnectionController.mainConnection)); parent.addChildNode(node); var nodeCachedData:Object; - if (mapDataCache && mapDataCache['children'].hasOwnProperty(node.nodeData.drupalID)) { + if (mapDataCache && mapDataCache.hasOwnProperty('children') && mapDataCache['children'].hasOwnProperty(node.nodeData.drupalID)) { nodeCachedData = mapDataCache['children'][node.nodeData.drupalID] as Object; nodeCachedData['node'] = node; cachedOrder.push(nodeCachedData); @@ -341,8 +341,8 @@ package plugins { // Fix order from cache parent.getChildNodeAll().removeAll(); - for (idx in cachedOrder) {parent.getChildNodeAll().addItem(cachedOrder[idx]['node']);} - for (idx in notCached) {parent.getChildNodeAll().addItem(notCached[idx]);} + for (idx in cachedOrder) {parent.getChildNodeAll().addItem(cachedOrder[idx]['node']);} + for (idx in notCached) {parent.getChildNodeAll().addItem(notCached[idx]);} } From 012d959b2e8c7d1d263ce74e9b40456acedd5ab3 Mon Sep 17 00:00:00 2001 From: "Attila Cs.Nagy" Date: Sat, 17 Mar 2012 11:30:01 +0100 Subject: [PATCH 2/2] coding style fix --- src/plugins/Relationship.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/Relationship.as b/src/plugins/Relationship.as index 6ba92b5..e5c7adc 100644 --- a/src/plugins/Relationship.as +++ b/src/plugins/Relationship.as @@ -341,8 +341,8 @@ package plugins { // Fix order from cache parent.getChildNodeAll().removeAll(); - for (idx in cachedOrder) {parent.getChildNodeAll().addItem(cachedOrder[idx]['node']);} - for (idx in notCached) {parent.getChildNodeAll().addItem(notCached[idx]);} + for (idx in cachedOrder) {parent.getChildNodeAll().addItem(cachedOrder[idx]['node']);} + for (idx in notCached) {parent.getChildNodeAll().addItem(notCached[idx]);} }