Builder/RightBrowser.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 4 May 2010 05:47:28 +0000 (13:47 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 4 May 2010 05:47:28 +0000 (13:47 +0800)
Builder/RightBrowser.js

index 309ada7..d5dea84 100755 (executable)
@@ -120,25 +120,14 @@ RightBrowser = new XObject({
                             
                         }
                         // c) ask tree where it should be dropped... - eg. parent.. (after node ontop)
-                        var tg = false;
-                        if (this.activeNode) {
-                            tg = LeftTree.get('model').findDropNode(this.activeNode, src.dropList);
-                            if (!tg.length) {
-                                Gdk.drag_status(ctx, 0,time);
-                                LeftTree.get('view').highlight(false);
-                                return true;
-                            }
-                        }
-                        // if no active node.. then check if tree is empty..
-                        if (XObject.keys(LeftTree.get('model').map).length) {
-                            // not found..
+                        
+                        var tg = LeftTree.get('model').findDropNode(this.activeNode, src.dropList);
+                        if (!tg.length) {
                             Gdk.drag_status(ctx, 0,time);
                             LeftTree.get('view').highlight(false);
                             return true;
                         }
-                     //   Seed.print(tg);
-                
-                        
+                         
                         // if we have a target..
                         // -> highlight it! (in browser)
                         // -> highlight it! (in tree)