Roo/grid/Calendar.js
authorAlan Knowles <alan@roojs.com>
Thu, 10 Apr 2014 01:21:45 +0000 (09:21 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 10 Apr 2014 01:21:45 +0000 (09:21 +0800)
Roo/grid/Calendar.js

index db12ffd..22ef1ba 100644 (file)
@@ -762,15 +762,15 @@ Roo.extend(Roo.grid.Calendar, Roo.grid.Grid, {
     
     clearEvents: function() {
         
-        if(!this.calevents){
+        if (!this.eventStore.getCount()) {
             return;
         }
-        
+        // reset number of rows in cells.
         Roo.each(this.cells.elements, function(c){
             c.rows = 0;
         });
         
-        Roo.each(this.calevents, function(e) {
+        this.eventStore.each(function(e) {
             Roo.each(e.els, function(el) {
                 el.un('mouseenter' ,this.onEventEnter, this);
                 el.un('mouseleave' ,this.onEventLeave, this);