TingoMixin.js
function( cb ){
              if( ! self.positionField ){
                cb( null );
              } else {

                // If repositioning is required, do it
                if( self.positionField ){
                  var where, beforeId;
                  if( ! options.position ){
                    where = 'end';
                  } else {
                    where = options.position.where;
                    beforeId = options.position.beforeId;
                  }
                  self.reposition( recordWithLookups, where, beforeId, cb );
                }
              }
            }
function( cb ){
              if( ! self.positionField ){
                cb( null );
              } else {

                // If repositioning is required, do it
                if( self.positionField ){
                  var where, beforeId;
                  if( ! options.position ){
                    where = 'end';
                  } else {
                    where = options.position.where;
                    beforeId = options.position.beforeId;
                  }
                  self.reposition( recordWithLookups, where, beforeId, cb );
                }
              }
            }
function ( cb ) { if ( ! self . positionField ) { cb ( null ) ; } else { // If repositioning is required, do it if ( self . positionField ) { var where , beforeId ; if ( ! options . position ) { where = 'end' ; } else { where = options . position . where ; beforeId = options . position . beforeId ; } self . reposition ( recordWithLookups , where , beforeId , cb ) ; } } }
This will get called shortly. Bypasses straight to callback or calls reposition with right parameters and then calls callback
This will get called shortly . Bypasses straight to callback or calls reposition with right parameters and then calls callback