@@ -249,35 +249,23 @@ export function objectPropertyAttributeCheckedUpdate() {
249
249
}
250
250
251
251
export function checkPropertiesUpdate ( value = 0 ) {
252
- // console.log('update check')
253
-
252
+ $ ( '.objectPropertyAttribute' ) . off (
253
+ 'change keyup paste click' ,
254
+ objectPropertyAttributeUpdate
255
+ )
254
256
$ ( '.objectPropertyAttribute' ) . on (
255
257
'change keyup paste click' ,
256
258
objectPropertyAttributeUpdate
257
259
)
258
260
261
+ $ ( '.objectPropertyAttributeChecked' ) . off (
262
+ 'change keyup paste click' ,
263
+ objectPropertyAttributeCheckedUpdate
264
+ )
259
265
$ ( '.objectPropertyAttributeChecked' ) . on (
260
266
'change keyup paste click' ,
261
267
objectPropertyAttributeCheckedUpdate
262
268
)
263
-
264
- //Duplicate of above (Handled above)
265
- // $('.objectPropertyAttributeChecked').on('click', function () {
266
- // if (this.name !== 'toggleLabelInLayoutMode') return // Hack to prevent toggleLabelInLayoutMode from toggling twice
267
- // scheduleUpdate()
268
- // updateCanvasSet(true)
269
- // wireToBeCheckedSet(1)
270
- // if (
271
- // simulationArea.lastSelected &&
272
- // simulationArea.lastSelected[this.name]
273
- // ) {
274
- // simulationArea.lastSelected[this.name](this.value)
275
- // // Commented out due to property menu refresh bug
276
- // // prevPropertyObjSet(simulationArea.lastSelected[this.name](this.value)) || prevPropertyObjGet();
277
- // } else {
278
- // circuitProperty[this.name](this.checked)
279
- // }
280
- // })
281
269
}
282
270
283
271
/**
0 commit comments