Roo/bootstrap/Calendar.js
authorEdward <edward@roojs.com>
Thu, 6 Mar 2014 08:30:43 +0000 (16:30 +0800)
committerEdward <edward@roojs.com>
Thu, 6 Mar 2014 08:30:43 +0000 (16:30 +0800)
Roo/bootstrap/Calendar.js

index 6018da2..42c373e 100644 (file)
@@ -576,8 +576,7 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
     },
     
     renderEvents: function()
-    {
-        this.clearEvents();
+    {   
         // first make sure there is enough space..
         this.cells.each(function(c) {
 //            Roo.log(c.select('.fc-day-content div',true).first(), Math.max(34, c.rows * 20));
@@ -662,6 +661,9 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
     },
     
     onLoad: function () {
+        
+        this.clearEvents();
+        
         this.calevents = [];
         var cal = this;
         if(this.store.getCount() > 0){