From 790627b4bfe2ab93181b75b04993ab0fcb337a73 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 7 Nov 2020 13:33:07 +0100 Subject: [PATCH] prune sim: avoid unnecessary viewmodel formula we set a reference on the checkbox, so we get this for free Signed-off-by: Thomas Lamprecht --- docs/prune-simulator/prune-simulator.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/prune-simulator/prune-simulator.js b/docs/prune-simulator/prune-simulator.js index 50eb4e4d..d3449c57 100644 --- a/docs/prune-simulator/prune-simulator.js +++ b/docs/prune-simulator/prune-simulator.js @@ -259,11 +259,6 @@ Ext.onReady(function() { alias: 'widget.prunesimulatorPanel', viewModel: { - formulas: { - calendarHidden: function(get) { - return !get('showCalendar.checked'); - }, - }, }, getValues: function() { @@ -724,7 +719,7 @@ Ext.onReady(function() { reference: 'weekTable', store: me.pruneStore, bind: { - hidden: '{calendarHidden}', + hidden: '{!showCalendar.checked}', }, }, ];