- Timestamp:
- 03/05/14 22:44:48 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/model/widgets/SurveyRenderWidget.js
r461 r487 1 1 define([ 2 2 "../../widgets/_ComplexValueWidget", 3 "../classes/Survey",4 3 "./questions/Factory", 5 4 "dojo/_base/array", … … 7 6 "dojo/dom-construct", 8 7 "dojo/text!./templates/SurveyRenderWidget.html" 9 ], function(_ComplexValueWidget, Survey,QuestionWidgetFactory, array, declare, domConstruct, template) {8 ], function(_ComplexValueWidget, QuestionWidgetFactory, array, declare, domConstruct, template) { 10 9 return declare([_ComplexValueWidget],{ 11 10 templateString: template, … … 22 21 this.survey = survey; 23 22 var f = new QuestionWidgetFactory(); 24 array.forEach( Survey.Questions.get(this.survey),function(question,question_index){23 array.forEach(this.survey.questions,function(question,question_index){ 25 24 array.forEach(question.content || [], function(item,item_index){ 26 25 // The dot causes values to be grouped in an object!
Note: See TracChangeset
for help on using the changeset viewer.