source: Dev/trunk/src/qed-client/model/classes/Question.js @ 443

Last change on this file since 443 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: 444 bytes
Line 
1define(function(){
2    return {
3        create: function(){
4            return { type:'Question' };
5        },
6        DisplayTitle: {
7            get: function(q) {
8                return q.title || '';
9            }
10        },
11        Content: {
12            get: function(q) {
13                return q.content || [];
14            },
15            set: function(q,content) {
16                q.content = content;
17            }
18        }
19    };
20});
Note: See TracBrowser for help on using the repository browser.