ContextSensitive already keeps track of this info.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 16 Jan 2009 18:15:52 +0000 (11:15 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 16 Jan 2009 19:37:20 +0000 (12:37 -0700)
imp/js/src/DimpBase.js

index 33967cd..6d5acea 100644 (file)
@@ -15,7 +15,6 @@ var DimpBase = {
     bcache: $H(),
     cacheids: {},
     lastrow: -1,
-    mo_sidebar: {},
     pivotrow: -1,
     ppcache: {},
     ppfifo: [],
@@ -1877,9 +1876,8 @@ var DimpBase = {
             if (DIMP.conf.is_ie6) {
                 li.addClassName('over');
             }
-            if (type && !this.mo_sidebar[li.id]) {
+            if (type && !DimpCore.DMenu.validElement(li.id)) {
                 DimpCore.addMouseEvents({ id: li.id, type: type });
-                this.mo_sidebar[li.id] = 1;
             }
             break;
 
@@ -2043,7 +2041,6 @@ var DimpBase = {
         }
         [ DragDrop.Drags.get_drag(fid), DragDrop.Drops.get_drop(fid) ].compact().invoke('destroy');
         DimpCore.removeMouseEvents(f);
-        delete this.mo_sidebar[fid];
         DimpCore.addGC(f);
         if (this.viewport) {
             this.viewport.deleteView(fid);