QED Style Guide =============== Attachpoints: - blablaNode when it's a dom node - blablaWidgetName for a widget (e.g. blablaContainer or blablaSelector) Events: - always own an event - onBalbla are events that are intended for use by others - _onBlabla are our own handlers for events Composite from elements: - Derive _ComplextValue{Mixin,Widget} - Value will now be an object. Take care when using the value, because not all fields might be there. Database objects: - make sure to not destroy fields that you don't expose in your form value = store.get(id) // get original value this.set('value', value) // fill form newValue = lang.mixin(value, this.get('value')) // store form values // OR newValue = lang.mixin({}, value, this.get('value')) // store in copy store.put(newValue) // carefull, only newValue get's an updated revid!