paramsForBackend: function() { var paramsObj = QueryParamsForBackend.create({page: this.getPage(), perPage: this.getPerPage(), paramMapping: this.get('paramMapping')}); var ops = paramsObj.make(); // take the otherParams hash and add the values at the same level as page/perPage ops = Util.mergeHashes(ops,this.get('otherParams')||{}); return ops; }.property('page','perPage','paramMapping','paramsForBackendCounter'),
paramsForBackend: Ember.computed('page','perPage','paramMapping','paramsForBackendCounter','zeroBasedIndex', function() { var page = this.getPage(); if (this.get('zeroBasedIndex')) { page--; } var paramsObj = QueryParamsForBackend.create({page: page, perPage: this.getPerPage(), paramMapping: this.get('paramMapping')}); var ops = paramsObj.make(); // take the otherParams hash and add the values at the same level as page/perPage ops = Util.mergeHashes(ops,this.get('otherParams')||{}); return ops; }),