Changeset 363 for Dev/branches/rest-dojo-ui/client/rft/pages/survey.js
- Timestamp:
- 07/17/12 11:52:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/pages/survey.js
r362 r363 46 46 })); 47 47 store.query('_design/default/_view/questions', {reduce:true,group:true,group_level:1}) 48 .for Each(lang.hitch(this,function(value,key){48 .forPairs(lang.hitch(this,function(value,key){ 49 49 this._createCategoryTab(key[0],value); 50 50 })); … … 68 68 categoryMap._filled = true; 69 69 store.query('_design/default/_view/questions', {reduce:true,group:true,group_level:2,startkey:[category],endkey:[category,{}]}) 70 .for Each(lang.hitch(this,function(value,key){70 .forPairs(lang.hitch(this,function(value,key){ 71 71 this._createTopicSelector(key[1],category,value); 72 72 })); … … 94 94 if (!topicMap._filled) { 95 95 store.query('_design/default/_view/questions', {reduce:false,include_docs:true,key:[category,topic]}) 96 .forEach(lang.hitch(this,function(value ,key){96 .forEach(lang.hitch(this,function(value){ 97 97 topicMap._widget.addItem(value); 98 98 }));
Note: See TracChangeset
for help on using the changeset viewer.