diff --git a/src/entries/jquery-ui.ts b/src/entries/jquery-ui.ts index 55424a22bf..476a896aa2 100644 --- a/src/entries/jquery-ui.ts +++ b/src/entries/jquery-ui.ts @@ -3,6 +3,8 @@ import * as ReactDOM from "react-dom"; import jQuery from "jquery"; import { Survey, PopupSurvey } from "./jquery-ui-model"; +// localization +import "./chunks/localization"; import { SurveyModel } from "./core"; @@ -16,15 +18,12 @@ jQuery["fn"].extend({ PopupSurvey: doPopupSurvey, SurveyWindow: doPopupSurvey }); - function doPopupSurvey(props: any): void { return this.each(function () { var model: Survey = props.model; const survey = React.createElement(PopupSurvey, { ...props }); ReactDOM.render(survey, this); - // var popupSurvey = props.popupModel || new PopupSurvey(model); - // if (props.expanded !== undefined) { // popupSurvey.isExpanded = props.expanded; // } @@ -43,11 +42,8 @@ function doPopupSurvey(props: any): void { // popupSurvey.show(); }); } - SurveyModel.platform = "jquery"; - export const preact: any = React; - export * from "./jquery-ui-model"; export * from "./core-export"; diff --git a/src/entries/react-ui.ts b/src/entries/react-ui.ts index c4c6cfda91..5b1657484d 100644 --- a/src/entries/react-ui.ts +++ b/src/entries/react-ui.ts @@ -5,6 +5,4 @@ export { SurveyModel as Model } from "survey-core"; export * from "../utils/responsivity-manager"; export { unwrap } from "../utils/utils"; -import { checkLibraryVersion } from "survey-core"; - -checkLibraryVersion(`${process.env.VERSION}`, "survey-react-ui"); \ No newline at end of file +import { checkLibraryVersion } from "survey-core"; \ No newline at end of file