Skip to content

Commit 5a7d8b8

Browse files
committed
fix: ensure change listeners are bound to default objects
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 1411219 commit 5a7d8b8

File tree

1 file changed

+5
-0
lines changed
  • lib/node_modules/@stdlib/plot/vega/builder/lib

1 file changed

+5
-0
lines changed

lib/node_modules/@stdlib/plot/vega/builder/lib/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ function Visualization( options ) {
154154
// Define an internal change event listener:
155155
this._onChange = onChange;
156156

157+
// Add change listeners to default event emitters:
158+
this._addChangeListener( this._autosize );
159+
this._addChangeListener( this._padding );
160+
this._addChangeListener( this._title );
161+
157162
// Validate provided options by attempting to assign option values to corresponding fields...
158163
if ( arguments.length ) {
159164
if ( !isObject( options ) ) {

0 commit comments

Comments
 (0)