js-mvc-framework
Advanced tools
Comparing version 1.2.18 to 1.2.19
@@ -41,14 +41,16 @@ import { Content, Model } from '/dependencies/mvc-framework.js' | ||
events: { | ||
// "content.propertyA.propertyB getProperty": function getProperty($event) { | ||
// $event.type, $event.basename, $event.detail | ||
// }, | ||
"content.propertyA.propertyB getProperty:propertyC": function getPropertyC($event) { | ||
console.log($event.type, $event.basename, $event.detail) | ||
}, | ||
"content.propertyA.propertyB setProperty:propertyC": function setPropertyC($event) { | ||
console.log($event.type, $event.basename, $event.detail) | ||
}, | ||
"content.propertyA.propertyB deleteProperty:propertyC": function deletePropertyC($event) { | ||
console.log($event.type, $event.basename, $event.detail) | ||
}, | ||
} | ||
}, { enableEvents: true }) | ||
// console.log(schema) | ||
// console.log(content) | ||
// console.log(content.object) | ||
console.log(content.get("propertyA.propertyB.propertyC")) | ||
content.get("propertyA.propertyB.propertyC") | ||
content.set("propertyA.propertyB.propertyC", "CCCCCCCCC") | ||
content.delete("propertyA.propertyB.propertyC") |
@@ -25,3 +25,3 @@ import deleteContent from './deleteContent/index.js' | ||
// Ulteroptions | ||
arguments.length === 2 && | ||
arguments.length === 2 + defaultArgumentsLength && | ||
typeof arguments[0 + defaultArgumentsLength] === 'string' && | ||
@@ -28,0 +28,0 @@ typeof arguments[1 + defaultArgumentsLength] === 'object' |
@@ -10,3 +10,8 @@ import Content from '../../../../../index.js' | ||
// Delete Preterproperties | ||
proxy.delete() | ||
// proxy.delete() | ||
proxy.delete({ | ||
events: { | ||
['delete']: false, ['deleteProperty']: false, ['deleteProperty:$key']: false | ||
} | ||
}) | ||
// Arguments | ||
@@ -13,0 +18,0 @@ const $value = arguments[0] |
{ | ||
"name": "js-mvc-framework", | ||
"author": "Thomas Patrick Welborn", | ||
"version": "1.2.18", | ||
"version": "1.2.19", | ||
"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
1657991
12713