File tree Expand file tree Collapse file tree 2 files changed +1
-52
lines changed Expand file tree Collapse file tree 2 files changed +1
-52
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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
426375function addPropHandling ( obj : any ) {
You can’t perform that action at this time.
0 commit comments