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

index b372947..8a8c14b 100644 (file)
@@ -565,6 +565,10 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
     
     clearEvents: function() {
         
+        if(!this.calevents){
+            return;
+        }
+        
         Roo.each(this.calevents, function(e) {
             Roo.each(e.els, function(el) {
                 el.un('mouseenter' ,this.onEventEnter, this);