From d9d0655e3024fc05c5358c57733b238cfe68d647 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sat, 13 Apr 2019 08:47:42 +0200 Subject: [PATCH] matrix: predeclare '$' variable (#512) --- CHANGELOG.md | 1 + src/client/app/widgets/matrices/matrix.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16640fc7..ab2126b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - bug fixes - handle network drops correctly (notify immediately and fix reconnection mechanism) + - matrix: regression the `$` variable ## 0.45.3 diff --git a/src/client/app/widgets/matrices/matrix.js b/src/client/app/widgets/matrices/matrix.js index cb9a5d69..6fa0ef3d 100644 --- a/src/client/app/widgets/matrices/matrix.js +++ b/src/client/app/widgets/matrices/matrix.js @@ -146,11 +146,17 @@ class Matrix extends _matrix_base { } + + Matrix.overriddenDefaults = [ 'type', 'id', 'address', 'preArgs', 'target', 'precision', 'bypass', 'label', 'top', 'left', 'height', 'width' ] +Matrix.parsersContexts.props = { + $: 0 +} + Matrix.dynamicProps = Matrix.prototype.constructor.dynamicProps.concat( 'props' )