Roo/bootstrap/Table.js
authorAlan Knowles <alan@roojs.com>
Fri, 9 Jul 2021 06:32:00 +0000 (14:32 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 9 Jul 2021 06:32:00 +0000 (14:32 +0800)
Roo/bootstrap/Table.js

index fd5ef13..2715746 100644 (file)
@@ -1160,8 +1160,8 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
         this.mainHead = table.createChild(header, this.mainBody, false);
         
         Roo.each(this.el.select('thead th.sortable', true).elements, function(e){
-            e.on('click', _this.sort, _this);
-        });
+            e.on('click', this.sort, this);
+        }, this);
         
         
     },