js-mvc-framework
Advanced tools
Comparing version 1.2.20 to 1.2.21
@@ -39,2 +39,3 @@ import { Control, Model, Schema, Content } from '/dependencies/mvc-framework.js' | ||
start: { value: function () { | ||
console.log(this.models.default.parse()) | ||
this.views.default.render( | ||
@@ -41,0 +42,0 @@ this.models.default.parse() |
@@ -62,8 +62,10 @@ import { Control } from '/dependencies/mvc-framework.js' | ||
events: { | ||
"routers.location.default route": ($event) => { | ||
console.log($event.type, $event.path, $event.location, $event.route) | ||
"routers.location.default route": function route($event) { | ||
console.log(this) | ||
// console.log($event) | ||
// this.start() | ||
}, | ||
"routers.location.default error": ($event) => { | ||
console.log($event.type, $event.path) | ||
} | ||
// "routers.location.default error": ($event) => { | ||
// console.log($event.type, $event.path) | ||
// } | ||
}, | ||
@@ -74,3 +76,3 @@ }, { | ||
console.log(this.models.default.parse()) | ||
// this.views.default.render(this.models.default.parse(), 'default') | ||
this.views.default.render(this.models.default.parse(), 'default') | ||
// console.log(this.views.default.querySelectors) | ||
@@ -77,0 +79,0 @@ // const controlViewParent = this.views.default.querySelectors['static-cms'] |
@@ -64,5 +64,5 @@ import Content from '../../Model/Content/index.js' | ||
if(this.#_boundListener !== undefined) { return this.#_boundListener } | ||
this.#_boundListener = this.#settings.listener.bind(this.context) | ||
this.#_boundListener = this.#settings.listener.bind(this.#context) | ||
return this.#_boundListener | ||
} | ||
} |
@@ -107,3 +107,8 @@ import { typeOf, recursiveAssign } from '../../Coutil/index.js' | ||
]) => { | ||
$parsement[$propertyDescriptorName] = $propertyDescriptor.value | ||
if($propertyDescriptor.value?.classToString === Content.toString()) { | ||
$parsement[$propertyDescriptorName] = $propertyDescriptor.value.object | ||
} | ||
else { | ||
$parsement[$propertyDescriptorName] = $propertyDescriptor.value | ||
} | ||
return $parsement | ||
@@ -110,0 +115,0 @@ }, parsement) |
{ | ||
"name": "js-mvc-framework", | ||
"author": "Thomas Patrick Welborn", | ||
"version": "1.2.20", | ||
"version": "1.2.21", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1659951
12737