source: Dev/trunk/src/client/qed-client/model/classes/Survey.js @ 452

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