Roo/bootstrap/Calendar.js
authorEdward <edward@roojs.com>
Wed, 5 Mar 2014 12:08:45 +0000 (20:08 +0800)
committerEdward <edward@roojs.com>
Wed, 5 Mar 2014 12:08:45 +0000 (20:08 +0800)
Roo/bootstrap/Calendar.js

index e60df6d..f1abf89 100644 (file)
@@ -649,6 +649,11 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
     
     getEvents: function (d) {
         
+        if (!this.store) {
+            throw "can not find store for combo";
+        }
+        this.store = Roo.factory(this.store, Roo.data);
+        
         this.resize();
         this.cells = this.el.select('.fc-day',true);
         this.textNodes = this.el.query('.fc-day-number');