- var me = grid;
- var sp = Ext.state.Manager.getProvider();
- var store = me.getStore();
- var items = [];
- me.suspendEvent('selectionchange');
- var storages = sp.get('dash-storages') || '';
- storages.split(',').forEach(function(storage) {
- // we have to get the records
- // to be able to select them
- if (storage !== '') {
- var item = store.getById(storage);
+ let store = grid.getStore();
+ let storages = Ext.state.Manager.getProvider().get('dash-storages') || '';
+
+ let items = [];
+ storages.split(',').forEach(storage => {
+ if (storage !== '') { // we have to get the records to be able to select them
+ let item = store.getById(storage);