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

index 246a015..aaa9fa5 100644 (file)
@@ -803,12 +803,7 @@ Roo.extend(Roo.grid.Calendar, Roo.grid.Grid, {
         }
         
         if (ev.els) {
-            Roo.each(ev.els, function(el) {
-                el.un('mouseenter' ,this.onEventEnter, this);
-                el.un('mouseleave' ,this.onEventLeave, this);
-                el.remove();
-            },this);
-            ev.els = [];
+            this.clearEvent(ev);
             //code
         }