Roo/bootstrap/Calendar.js
authorEdward <edward@roojs.com>
Thu, 6 Mar 2014 07:54:01 +0000 (15:54 +0800)
committerEdward <edward@roojs.com>
Thu, 6 Mar 2014 07:54:01 +0000 (15:54 +0800)
Roo/bootstrap/Calendar.js

index 2e0fa48..ed56f7e 100644 (file)
@@ -662,10 +662,10 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
     
     onLoad: function () {
         this.calevents = [];
-        Roo.log(this);
+        var cal = this;
         if(this.store.getCount() > 0){
             this.store.data.each(function(d){
-               this.addItem({
+               cal.addItem({
                     start: new Date(),
                     end : new Date().add(Date.DAY, 2),
                     title : 'test'