Skip to content

Commit

Permalink
fix(core): export internal $jsx helper for lazy components
Browse files Browse the repository at this point in the history
fixes #4072
  • Loading branch information
nolimits4web committed Sep 14, 2022
1 parent 32f3be9 commit c2a2213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build-core-lazy-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function framework7ComponentLoader(Framework7, Framework7AutoInstallComponent) {
var Modal = Framework7.Modal;
var ConstructorMethods = Framework7.ConstructorMethods;
var ModalMethods = Framework7.ModalMethods;
var $jsx = Framework7.$jsx;
`;

const install = `
Expand Down
2 changes: 2 additions & 0 deletions src/core/components/app/app-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import ConstructorMethods from '../../shared/constructor-methods.js';
import ModalMethods from '../../shared/modal-methods.js';
import $ from '../../shared/dom7.js';
import loadModule from './load-module.js';
import $jsx from '../../shared/$jsx.js';

class Framework7 extends Framework7Class {
constructor(params = {}) {
Expand Down Expand Up @@ -321,6 +322,7 @@ class Framework7 extends Framework7Class {
}
}

Framework7.$jsx = $jsx;
Framework7.ModalMethods = ModalMethods;
Framework7.ConstructorMethods = ConstructorMethods;

Expand Down

0 comments on commit c2a2213

Please sign in to comment.