@jeefo/component
Advanced tools
Comparing version 0.0.11 to 0.0.12
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : conditional_component.js | ||
* Created at : 2020-06-09 | ||
* Updated at : 2020-10-23 | ||
* Updated at : 2020-10-31 | ||
* Author : jeefo | ||
@@ -38,5 +38,3 @@ * Purpose : | ||
if (parent) { | ||
parent.children.push(this); | ||
} | ||
if (parent) parent.children.push(this); | ||
resolve(this); | ||
@@ -43,0 +41,0 @@ }); |
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : for_each.js | ||
* Created at : 2017-07-25 | ||
* Updated at : 2020-10-23 | ||
* Updated at : 2020-11-15 | ||
* Author : jeefo | ||
@@ -208,4 +208,6 @@ * Purpose : | ||
/* | ||
const move = (index, child) => { | ||
const {index: old_index} = child; | ||
if (! children[old_index]) return; | ||
@@ -224,2 +226,3 @@ const a = children[index].$element.DOM_element; | ||
}; | ||
*/ | ||
@@ -239,2 +242,10 @@ const insert = (index, child) => { | ||
} else if (child.index !== index) { | ||
if (index > 0) { | ||
children[index - 1].$element.after(child.$element); | ||
} else { | ||
$placeholder.after(child.$element); | ||
} | ||
child.index = index; | ||
/* | ||
debugger | ||
const data = { | ||
@@ -250,2 +261,3 @@ old_index : child.index, | ||
} | ||
*/ | ||
} | ||
@@ -252,0 +264,0 @@ } |
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : jf_bind_html.js | ||
* Created at : 2020-08-09 | ||
* Updated at : 2020-08-09 | ||
* Updated at : 2020-11-18 | ||
* Author : jeefo | ||
@@ -22,7 +22,20 @@ * Purpose : | ||
const white_list_elements = [ | ||
"DIV", | ||
"A", | ||
"B", | ||
"U", | ||
"I", | ||
"OL", | ||
"UL", | ||
"LI", | ||
"BR", | ||
"DIV", | ||
"PRE", | ||
"TD", | ||
"TH", | ||
"TR", | ||
"THEAD", | ||
"TBODY", | ||
"TABLE", | ||
"SPAN", | ||
"BLOCKQUOTE", | ||
]; | ||
@@ -33,2 +46,4 @@ | ||
"style", | ||
"href", | ||
"target", | ||
]; | ||
@@ -35,0 +50,0 @@ |
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : ast_node_table.js | ||
* Created at : 2017-09-18 | ||
* Updated at : 2020-10-23 | ||
* Updated at : 2020-10-31 | ||
* Author : jeefo | ||
@@ -79,2 +79,3 @@ * Purpose : | ||
"es5/expressions/computed_member_expression", | ||
"es6/expressions/computed_member_access", | ||
"es6/expressions/property_definition", | ||
@@ -81,0 +82,0 @@ |
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : interpreter.js | ||
* Created at : 2019-06-30 | ||
* Updated at : 2020-10-23 | ||
* Updated at : 2020-10-31 | ||
* Author : jeefo | ||
@@ -126,3 +126,3 @@ * Purpose : | ||
const object = compile(node.object, controllers, component); | ||
const expr = compile(node.member, controllers, component); | ||
const expr = compile(node.member.expression, controllers, component); | ||
return `${object}[${expr}]`; | ||
@@ -129,0 +129,0 @@ } |
{ | ||
"name": "@jeefo/component", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"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
102350
2875