Ignore:
Timestamp:
07/17/12 11:52:08 (13 years ago)
Author:
hendrikvanantwerpen
Message:

Fixed incompatibility of store with defined interface
dojo.store.Store. Added custom forPairs function to query results and
included documentation about query options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/pages/survey.js

    r362 r363  
    4646                }));
    4747                store.query('_design/default/_view/questions', {reduce:true,group:true,group_level:1})
    48                 .forEach(lang.hitch(this,function(value,key){
     48                .forPairs(lang.hitch(this,function(value,key){
    4949                    this._createCategoryTab(key[0],value);
    5050                }));
     
    6868                    categoryMap._filled = true;
    6969                    store.query('_design/default/_view/questions', {reduce:true,group:true,group_level:2,startkey:[category],endkey:[category,{}]})
    70                     .forEach(lang.hitch(this,function(value,key){
     70                    .forPairs(lang.hitch(this,function(value,key){
    7171                        this._createTopicSelector(key[1],category,value);
    7272                    }));
     
    9494                if (!topicMap._filled) {
    9595                    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){
    9797                        topicMap._widget.addItem(value);
    9898                    }));
Note: See TracChangeset for help on using the changeset viewer.