Roo/grid/Calendar.js
authorAlan Knowles <alan@roojs.com>
Thu, 10 Apr 2014 02:30:18 +0000 (10:30 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 10 Apr 2014 02:30:18 +0000 (10:30 +0800)
Roo/grid/Calendar.js

index 2327b01..5c0e1b6 100644 (file)
@@ -789,6 +789,18 @@ Roo.extend(Roo.grid.Calendar, Roo.grid.Grid, {
         
     },
     
+    clearEvent(ev)
+    {
+        if (ev.els) {
+            Roo.each(e.els, function(el) {
+                el.un('mouseenter' ,this.onEventEnter, this);
+                el.un('mouseleave' ,this.onEventLeave, this);
+                el.remove();
+            },this);
+            e.els = [];
+        }
+    }
+    
     
     renderEvent : function(ev,ctr) {
         if (!ctr) {