render-core 1.3.70 → 1.3.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +2 -3
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -30,7 +30,7 @@ export declare class RenderJS extends AbstractRenderJS implements RenderGeneric
30
30
  * @return void
31
31
  */
32
32
  run(): void;
33
- init(): void;
33
+ init(callable: () => void): void;
34
34
  }
35
35
  /**
36
36
  * Inject element to the window environment.
package/index.js CHANGED
@@ -70,12 +70,11 @@ var RenderJS = /** @class */ (function (_super) {
70
70
  this.registerElements("changeStyle", changeStyle);
71
71
  //注册函数
72
72
  this.registerElements("changeTheme", changeTheme);
73
- //初始化
74
- this.init();
75
73
  //execute
76
74
  render(this);
77
75
  };
78
- RenderJS.prototype.init = function () {
76
+ RenderJS.prototype.init = function (callable) {
77
+ callable();
79
78
  };
80
79
  return RenderJS;
81
80
  }(AbstractRenderJS));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "render-core",
3
- "version": "1.3.70",
3
+ "version": "1.3.71",
4
4
  "description": "The extendable javascript web framework",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",