adapt coding style @bajtos

This commit is contained in:
mamboer 2015-05-26 12:33:56 +08:00
parent 69bd7c1233
commit 018022e84b
1 changed files with 4 additions and 4 deletions

View File

@ -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