Last change
on this file since 469 was
443,
checked in by hendrikvanantwerpen, 12 years ago
|
Reorganized for Node --- the SVN gods hate us all!
Lost all historical info on moved files, because SVN is a f *.
Also we have Node now, serving both the static content and forwarding
database requests.
|
File size:
924 bytes
|
Line | |
---|
1 | QED Style Guide |
---|
2 | =============== |
---|
3 | |
---|
4 | Attachpoints: |
---|
5 | - blablaNode when it's a dom node |
---|
6 | - blablaWidgetName for a widget (e.g. blablaContainer or blablaSelector) |
---|
7 | |
---|
8 | Events: |
---|
9 | - always own an event |
---|
10 | - onBalbla are events that are intended for use by others |
---|
11 | - _onBlabla are our own handlers for events |
---|
12 | |
---|
13 | Composite from elements: |
---|
14 | - Derive _ComplextValue{Mixin,Widget} |
---|
15 | - Value will now be an object. Take care when using the value, |
---|
16 | because not all fields might be there. |
---|
17 | |
---|
18 | Database objects: |
---|
19 | - make sure to not destroy fields that you don't expose in your form |
---|
20 | value = store.get(id) // get original value |
---|
21 | this.set('value', value) // fill form |
---|
22 | newValue = lang.mixin(value, this.get('value')) // store form values |
---|
23 | // OR |
---|
24 | newValue = lang.mixin({}, value, this.get('value')) // store in copy |
---|
25 | store.put(newValue) // carefull, only newValue get's an updated revid! |
---|
Note: See
TracBrowser
for help on using the repository browser.