adapt coding style @bajtos
This commit is contained in:
parent
69bd7c1233
commit
018022e84b
|
@ -193,10 +193,10 @@ function defineScope(cls, targetClass, name, params, methods, options) {
|
|||
if (f._scope.collect &&
|
||||
condOrRefresh !== null && typeof condOrRefresh === 'object') {
|
||||
//extract the paging filters to the through model
|
||||
['limit','offset','skip','order'].forEach(function( pagerFilter ){
|
||||
if( typeof( condOrRefresh[ pagerFilter ] ) !== 'undefined' ){
|
||||
f._scope[ pagerFilter ] = condOrRefresh[ pagerFilter ];
|
||||
delete condOrRefresh[ pagerFilter ];
|
||||
['limit','offset','skip','order'].forEach(function(pagerFilter){
|
||||
if(typeof(condOrRefresh[pagerFilter]) !== 'undefined'){
|
||||
f._scope[pagerFilter] = condOrRefresh[pagerFilter];
|
||||
delete condOrRefresh[pagerFilter];
|
||||
}
|
||||
});
|
||||
// Adjust the include so that the condition will be applied to
|
||||
|
|
Loading…
Reference in New Issue