function fixElement(i, pos, flag) {
      var ori = flag == 1 ? 'pos' : 'oppos';

      if (viewPortSize < (params.minView || 0)) { // No headers fixing when no enought space for viewport
        pos = undefined;
      }

      // Removing all fixing stuff - we can do this because fixElement triggers only when fixState really changed
      this.$(elements[i]).css(this.origin.pos, '').css(this.origin.oppos, '').removeClass(params.outside);

      // Fixing if needed
      if (pos !== undefined) {
        pos += 'px';
        this.$(elements[i]).css(this.origin[ori], pos).addClass(params.outside);
      }
    }
// Invocation only in case when fix-state changed
Invocation only in case when fix-state changed
Invocation only in case when fix - state changed
function fixElement(i, pos, flag) {
      var ori = flag == 1 ? 'pos' : 'oppos';
      if (viewPortSize < (params.minView || 0)) { 
        pos = undefined;
      }
      this.$(elements[i]).css(this.origin.pos, '').css(this.origin.oppos, '').removeClass(params.outside);
      if (pos !== undefined) {
        pos += 'px';
        this.$(elements[i]).css(this.origin[ori], pos).addClass(params.outside);
      }
    }
function fixElement ( i , pos , flag ) { var ori = flag == 1 ? 'pos' : 'oppos' ; if ( viewPortSize < ( params . minView || 0 ) ) { pos = undefined ; } this . $ ( elements [ i ] ) . css ( this . origin . pos , '' ) . css ( this . origin . oppos , '' ) . removeClass ( params . outside ) ; if ( pos !== undefined ) { pos += 'px' ; this . $ ( elements [ i ] ) . css ( this . origin [ ori ] , pos ) . addClass ( params . outside ) ; } }
Invocation only in case when fix-state changed
Invocation only in case when fix - state changed
// No headers fixing when no enought space for viewport // Removing all fixing stuff - we can do this because fixElement triggers only when fixState really changed // Fixing if needed