@jeefo/component
Advanced tools
Comparing version 0.0.18 to 0.0.19
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : renderable_component.js | ||
* Created at : 2019-06-26 | ||
* Updated at : 2021-02-18 | ||
* Updated at : 2021-03-07 | ||
* Author : jeefo | ||
@@ -81,7 +81,2 @@ * Purpose : | ||
// Step 1: bind events | ||
if (this.binding_events.length) { | ||
this.bind_events(); | ||
} | ||
// Step 2: initialize itself | ||
@@ -138,2 +133,7 @@ if (controller) { | ||
// Step 1: bind events | ||
if (this.binding_events.length) { | ||
this.bind_events(); | ||
} | ||
// Step 6: initialize child components | ||
@@ -203,7 +203,5 @@ for (const child of this.children) { | ||
// Event binder template cannot be binded component itself. | ||
const {parent} = self; | ||
this.event_binder = temp_event_binder; | ||
const interpreter = new Interpreter(expression, this); | ||
parent.event_binder = temp_event_binder; | ||
const interpreter = new Interpreter(expression, parent); | ||
return function (event) { | ||
@@ -210,0 +208,0 @@ try { |
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : i_renderable.js | ||
* Created at : 2020-06-08 | ||
* Updated at : 2020-10-23 | ||
* Updated at : 2021-03-07 | ||
* Author : jeefo | ||
@@ -28,4 +28,4 @@ * Purpose : | ||
Controller, controller_name, | ||
}) { | ||
super(name, { Controller, controller_name }, IRenderable); | ||
}, is_directive = false) { | ||
super(name, { Controller, controller_name }, IRenderable, is_directive); | ||
@@ -32,0 +32,0 @@ this.binders = binders; |
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : interpreter.js | ||
* Created at : 2019-06-30 | ||
* Updated at : 2021-01-26 | ||
* Updated at : 2021-03-07 | ||
* Author : jeefo | ||
@@ -32,3 +32,3 @@ * Purpose : | ||
const build_script = ({ id, controller, controller_name }) => { | ||
const build_script = ({ id, controller, controller_name, directives }) => { | ||
if (controller_name) { | ||
@@ -43,2 +43,7 @@ if (controller_name === property) { | ||
return `$ctrls.${ctrl_name}.${property}`; | ||
} else if (directives) { | ||
for (const dir of directives) { | ||
const script = build_script(dir); | ||
if (script) return script; | ||
} | ||
} | ||
@@ -45,0 +50,0 @@ }; |
{ | ||
"name": "@jeefo/component", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"homepage": "https://github.com/je3f0o/jeefo_component", | ||
@@ -5,0 +5,0 @@ "copyright": "2019", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104497
2934