Skip to content

Commit 8c6a346

Browse files
committed
Bugfix
1 parent 16a031b commit 8c6a346

File tree

2 files changed

+1
-52
lines changed

2 files changed

+1
-52
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-element",
3-
"version": "0.0.207",
3+
"version": "0.0.208",
44
"description": "",
55
"license": "LGPL-3.0",
66
"main": "./index.js",

src/main/js-element.ts

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -370,57 +370,6 @@ function addAttributeHandling(
370370
}
371371
}
372372
}
373-
/*
374-
for (const propConfig of propConfigByPropName.values()) {
375-
const { propName } = propConfig
376-
377-
const setPropDescriptor = (target: any) => {
378-
let propValue: any
379-
380-
Object.defineProperty(target, propName, {
381-
get() {
382-
return propValue
383-
},
384-
385-
set(value: any) {
386-
console.log(5555, propName)
387-
propValue = value
388-
389-
if (propConfig.hasAttr && propConfig.reflect) {
390-
try {
391-
ignoreAttributeChange = true
392-
393-
target.setAttribute(
394-
propConfig.attrName,
395-
propConfig.mapPropToAttr(value)
396-
)
397-
} finally {
398-
ignoreAttributeChange = false
399-
}
400-
}
401-
console.log('refresh')
402-
ctrls.get(this)!.refresh()
403-
}
404-
})
405-
}
406-
407-
console.log(4444, propName)
408-
409-
Object.defineProperty(proto, propName, {
410-
get() {
411-
console.log(6666, propName)
412-
setPropDescriptor(this)
413-
return undefined
414-
},
415-
416-
set(this: any, value: any) {
417-
console.log(2222, propName)
418-
setPropDescriptor(this)
419-
this[propName] = value
420-
}
421-
})
422-
}
423-
*/
424373
}
425374

426375
function addPropHandling(obj: any) {

0 commit comments

Comments
 (0)