Browse Source

renamed app interface functions

Skylsmoi 6 years ago
parent
commit
ea8f287588
2 changed files with 3 additions and 3 deletions
  1. 1 1
      package.json
  2. 2 2
      src/index.js

+ 1 - 1
package.json View File

52
       "btoa",
52
       "btoa",
53
       "wysiwyg",
53
       "wysiwyg",
54
       "tinymce",
54
       "tinymce",
55
-      "GLOBAL_renderApp",
55
+      "GLOBAL_renderAppFull",
56
       "GLOBAL_unmountApp",
56
       "GLOBAL_unmountApp",
57
       "GLOBAL_dispatchEvent"
57
       "GLOBAL_dispatchEvent"
58
     ],
58
     ],

+ 2 - 2
src/index.js View File

8
 const appInterface = {
8
 const appInterface = {
9
   name: 'Thread',
9
   name: 'Thread',
10
   isRendered: false,
10
   isRendered: false,
11
-  renderApp: data => {
11
+  renderAppFull: data => {
12
     return ReactDOM.render(
12
     return ReactDOM.render(
13
       <Thread data={data} />
13
       <Thread data={data} />
14
       , document.getElementById(data.config.domContainer)
14
       , document.getElementById(data.config.domContainer)
17
   unmountApp: domId => {
17
   unmountApp: domId => {
18
     return ReactDOM.unmountComponentAtNode(document.getElementById(domId)) // returns bool
18
     return ReactDOM.unmountComponentAtNode(document.getElementById(domId)) // returns bool
19
   },
19
   },
20
-  renderPopupCreation: data => {
20
+  renderAppPopupCreation: data => {
21
     return ReactDOM.render(
21
     return ReactDOM.render(
22
       <PopupCreateThread data={data} />
22
       <PopupCreateThread data={data} />
23
       , document.getElementById(data.config.domContainer)
23
       , document.getElementById(data.config.domContainer)