@@ -951,21 +951,21 @@ export const __meta__ = {
951951            value  =  null ; 
952952            originalName  =  name ; 
953953
954-             name  =  typeof  ( field . field )  ===  STRING  ? field . field  : name ; 
954+             let   nameToUse  =  typeof  ( field . field )  ===  STRING  ? field . field  : name ; 
955955
956956            if  ( ! field . nullable  ||  field . defaultValue )  { 
957-                 value  =  proto . defaults [ originalName  !==  name  ? originalName  : name ]  =  field . defaultValue  !==  undefined  ? field . defaultValue  : defaultValues [ type . toLowerCase ( ) ] ; 
957+                 value  =  proto . defaults [ originalName  !==  nameToUse  ? originalName  : nameToUse ]  =  field . defaultValue  !==  undefined  ? field . defaultValue  : defaultValues [ type . toLowerCase ( ) ] ; 
958958
959959                if  ( typeof  value  ===  "function" )  { 
960-                     functionFields . push ( name ) ; 
960+                     functionFields . push ( nameToUse ) ; 
961961                } 
962962            } 
963963
964-             if  ( options . id  ===  name )  { 
964+             if  ( options . id  ===  nameToUse )  { 
965965                proto . _defaultId  =  value ; 
966966            } 
967967
968-             proto . defaults [ originalName  !==  name  ? originalName  : name ]  =  value ; 
968+             proto . defaults [ originalName  !==  nameToUse  ? originalName  : nameToUse ]  =  value ; 
969969
970970            if  ( $ . isPlainObject ( field ) )  { 
971971                field . parse  =  field . parse  ||  parsers [ type ] ; 
@@ -4593,26 +4593,31 @@ export const __meta__ = {
45934593            } 
45944594
45954595            data . groupPaging  =  true ; 
4596+             that . _queueWithTimeout ( data ,  function ( )  { 
4597+                 if  ( ! that . trigger ( REQUESTSTART ,  { 
4598+                         type : "read" 
4599+                     } ) )  { 
4600+                     that . transport . read ( { 
4601+                         data : data , 
4602+                         success : that . _groupItemsSuccessHandler ( group ,  options . skip ,  that . take ( ) ,  callback ,  groupItemsSkip ) , 
4603+                         error : function ( )  { 
4604+                             var  args  =  slice . call ( arguments ) ; 
4605+                             that . error . apply ( that ,  args ) ; 
4606+                         } 
4607+                     } ) ; 
4608+                 }  else  { 
4609+                     that . _dequeueRequest ( ) ; 
4610+                 } 
4611+             } ,  100 ) ; 
4612+         } , 
4613+ 
4614+         _queueWithTimeout : function ( options ,  callback ,  delay )  { 
4615+             let  that  =  this ; 
45964616
45974617            clearTimeout ( that . _timeout ) ; 
45984618            that . _timeout  =  setTimeout ( function ( )  { 
4599-                 that . _queueRequest ( data ,  function ( )  { 
4600-                     if  ( ! that . trigger ( REQUESTSTART ,  { 
4601-                             type : "read" 
4602-                         } ) )  { 
4603-                         that . transport . read ( { 
4604-                             data : data , 
4605-                             success : that . _groupItemsSuccessHandler ( group ,  options . skip ,  that . take ( ) ,  callback ,  groupItemsSkip ) , 
4606-                             error : function ( )  { 
4607-                                 var  args  =  slice . call ( arguments ) ; 
4608-                                 that . error . apply ( that ,  args ) ; 
4609-                             } 
4610-                         } ) ; 
4611-                     }  else  { 
4612-                         that . _dequeueRequest ( ) ; 
4613-                     } 
4614-                 } ) ; 
4615-             } ,  100 ) ; 
4619+                 that . _queueRequest ( options ,  callback ) ; 
4620+             } ,  delay ) ; 
46164621        } , 
46174622
46184623        _groupItemsSuccessHandler : function ( group ,  skip ,  take ,  callback ,  groupItemsSkip )  { 
@@ -5489,26 +5494,22 @@ export const __meta__ = {
54895494            } 
54905495
54915496            if  ( ( that . _isServerGroupPaged ( )  &&  ! that . _groupRangeExists ( skip ,  size ) )  ||  ! that . _rangeExists ( skip ,  size ) )  { 
5492-                 clearTimeout ( that . _timeout ) ; 
5493- 
5494-                 that . _timeout  =  setTimeout ( function ( )  { 
5495-                     that . _queueRequest ( options ,  function ( )  { 
5496-                         if  ( ! that . trigger ( REQUESTSTART ,  {  type : "read"  } ) )  { 
5497-                             if  ( that . _omitPrefetch )  { 
5498-                                 that . trigger ( PROGRESS ) ; 
5499-                             } 
5500-                             that . transport . read ( { 
5501-                                 data : that . _params ( options ) , 
5502-                                 success : that . _prefetchSuccessHandler ( skip ,  size ,  callback ) , 
5503-                                 error : function ( )  { 
5504-                                     var  args  =  slice . call ( arguments ) ; 
5505-                                     that . error . apply ( that ,  args ) ; 
5506-                                 } 
5507-                             } ) ; 
5508-                         }  else  { 
5509-                             that . _dequeueRequest ( ) ; 
5497+                 that . _queueWithTimeout ( options ,  function ( )  { 
5498+                     if  ( ! that . trigger ( REQUESTSTART ,  {  type : "read"  } ) )  { 
5499+                         if  ( that . _omitPrefetch )  { 
5500+                             that . trigger ( PROGRESS ) ; 
55105501                        } 
5511-                     } ) ; 
5502+                         that . transport . read ( { 
5503+                             data : that . _params ( options ) , 
5504+                             success : that . _prefetchSuccessHandler ( skip ,  size ,  callback ) , 
5505+                             error : function ( )  { 
5506+                                 var  args  =  slice . call ( arguments ) ; 
5507+                                 that . error . apply ( that ,  args ) ; 
5508+                             } 
5509+                         } ) ; 
5510+                     }  else  { 
5511+                         that . _dequeueRequest ( ) ; 
5512+                     } 
55125513                } ,  100 ) ; 
55135514            }  else  if  ( callback )  { 
55145515                callback ( ) ; 
0 commit comments