Browse Source

renamed app interface functions

Skylsmoi 5 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,7 +52,7 @@
52 52
       "btoa",
53 53
       "wysiwyg",
54 54
       "tinymce",
55
-      "GLOBAL_renderApp",
55
+      "GLOBAL_renderAppFull",
56 56
       "GLOBAL_unmountApp",
57 57
       "GLOBAL_dispatchEvent"
58 58
     ],

+ 2 - 2
src/index.js View File

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