]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
object grid: call rendere with our scope
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 12 Apr 2022 14:36:50 +0000 (16:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 12 Apr 2022 14:36:53 +0000 (16:36 +0200)
having window as this scope has zero benefits and while one could
already try to get the local scope via some Ext.ComponentQuery query
its just nicer to have it easily available.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/grid/ObjectGrid.js

index 9f3886e6ce5a290e852bbac1b10d962463a79eba..b355d6dee2beab55c1f292d6986c4790c0c463f0 100644 (file)
@@ -248,7 +248,7 @@ Ext.define('Proxmox.grid.ObjectGrid', {
 
        let renderer = rowdef.renderer;
        if (renderer) {
-           return renderer(value, metaData, record, rowIndex, colIndex, store);
+           return renderer.call(me, value, metaData, record, rowIndex, colIndex, store);
        }
 
        return value;