From ee924ae10d52d95c290e6aff52b0a44d32c8e2e6 Mon Sep 17 00:00:00 2001 From: Roman Dvornov Date: Tue, 28 Nov 2023 01:53:19 +0100 Subject: [PATCH] Remove redundant helper --- src/extensions/inspector.js | 7 ------- src/extensions/inspector/data.js | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/extensions/inspector.js b/src/extensions/inspector.js index 7b908b13..5cc97677 100644 --- a/src/extensions/inspector.js +++ b/src/extensions/inspector.js @@ -255,13 +255,6 @@ export default (host) => { })], content: { view: 'context', - data(data, context) { - // hack to change context, to extend queries with additional methods, - // but avoid polution of user's setup with custom methods - context.isString = value => typeof value === 'string'; - - return data; - }, modifiers: { view: 'block', className: 'toolbar', diff --git a/src/extensions/inspector/data.js b/src/extensions/inspector/data.js index b7c4438a..c22aa278 100644 --- a/src/extensions/inspector/data.js +++ b/src/extensions/inspector/data.js @@ -72,7 +72,7 @@ const dataTransitionsList = { view: 'switch', content: [ { - when: '$isString: #.isString; transition | $isString() or $ = undefined', + when: 'transition is (string or undefined)', content: { view: 'context', data(data) {