Roo/bootstrap/Calendar.js
authorEdward <edward@roojs.com>
Thu, 4 Sep 2014 07:16:41 +0000 (15:16 +0800)
committerEdward <edward@roojs.com>
Thu, 4 Sep 2014 07:16:41 +0000 (15:16 +0800)
Roo/bootstrap/Calendar.js

index 390dd9a..5a233d3 100644 (file)
@@ -776,7 +776,7 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
                         cfg.cls += ' fc-event-end';
                     }
 
-                    var ctr = this.el.select('.fc-event-container',true).first();
+                    var ctr = _this.el.select('.fc-event-container',true).first();
                     var cg = ctr.createChild(cfg);
 
                     var sbox = rows[i].start.select('.fc-day-content',true).first().getBox();
@@ -790,9 +790,9 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
     //                    continue;
     //                }
 
-                    cg.on('mouseenter' ,this.onEventEnter, this, ev);
-                    cg.on('mouseleave' ,this.onEventLeave, this, ev);
-                    cg.on('click', this.onEventClick, this, ev);
+                    cg.on('mouseenter' ,_this.onEventEnter, _this, ev);
+                    cg.on('mouseleave' ,_this.onEventLeave, _this, ev);
+                    cg.on('click', _this.onEventClick, _this, ev);
 
                     ev.els.push(cg);
     //