Skip to content

Commit

Permalink
Reverted entry files changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv2013 committed Jul 10, 2024
1 parent 2d46f88 commit 10a0277
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 2 additions & 6 deletions src/entries/jquery-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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;
// }
Expand All @@ -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";

Expand Down
4 changes: 1 addition & 3 deletions src/entries/react-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
import { checkLibraryVersion } from "survey-core";

0 comments on commit 10a0277

Please sign in to comment.