public/js/plugins/iCheck/icheck.js
function off(input, state, keep) {
    var node = input[0],
      parent = input.parent(),
      checked = state == _checked,
      indeterminate = state == _indeterminate,
      disabled = state == _disabled,
      callback = indeterminate ? _determinate : checked ? _unchecked : 'enabled',
      regular = option(input, callback + capitalize(node[_type])),
      specific = option(input, state + capitalize(node[_type]));

    // Prevent unnecessary actions
    if (node[state] !== false) {

      // Toggle state
      if (indeterminate || !keep || keep == 'force') {
        node[state] = false;
      };

      // Trigger callbacks
      callbacks(input, checked, callback, keep);
    };

    // Add proper cursor
    if (!node[_disabled] && !!option(input, _cursor, true)) {
      parent.find('.' + _iCheckHelper).css(_cursor, 'pointer');
    };

    // Remove state class
    parent[_remove](specific || option(input, state) || '');

    // Set ARIA attribute
    disabled ? parent.attr('aria-disabled', 'false') : parent.attr('aria-checked', 'false');

    // Add regular state class
    parent[_add](regular || option(input, callback) || '');
  }
function off(input, state, keep) {
    var node = input[0],
      parent = input.parent(),
      checked = state == _checked,
      indeterminate = state == _indeterminate,
      disabled = state == _disabled,
      callback = indeterminate ? _determinate : checked ? _unchecked : 'enabled',
      regular = option(input, callback + capitalize(node[_type])),
      specific = option(input, state + capitalize(node[_type]));

    // Prevent unnecessary actions
    if (node[state] !== false) {

      // Toggle state
      if (indeterminate || !keep || keep == 'force') {
        node[state] = false;
      };

      // Trigger callbacks
      callbacks(input, checked, callback, keep);
    };

    // Add proper cursor
    if (!node[_disabled] && !!option(input, _cursor, true)) {
      parent.find('.' + _iCheckHelper).css(_cursor, 'pointer');
    };

    // Remove state class
    parent[_remove](specific || option(input, state) || '');

    // Set ARIA attribute
    disabled ? parent.attr('aria-disabled', 'false') : parent.attr('aria-checked', 'false');

    // Add regular state class
    parent[_add](regular || option(input, callback) || '');
  }
function off ( input , state , keep ) { var node = input [ 0 ] , parent = input . parent ( ) , checked = state == _checked , indeterminate = state == _indeterminate , disabled = state == _disabled , callback = indeterminate ? _determinate : checked ? _unchecked : 'enabled' , regular = option ( input , callback + capitalize ( node [ _type ] ) ) , specific = option ( input , state + capitalize ( node [ _type ] ) ) ; // Prevent unnecessary actions if ( node [ state ] !== false ) { // Toggle state if ( indeterminate || ! keep || keep == 'force' ) { node [ state ] = false ; } ; // Trigger callbacks callbacks ( input , checked , callback , keep ) ; } ; // Add proper cursor if ( ! node [ _disabled ] && ! ! option ( input , _cursor , true ) ) { parent . find ( '.' + _iCheckHelper ) . css ( _cursor , 'pointer' ) ; } ; // Remove state class parent [ _remove ] ( specific || option ( input , state ) || '' ) ; // Set ARIA attribute disabled ? parent . attr ( 'aria-disabled' , 'false' ) : parent . attr ( 'aria-checked' , 'false' ) ; // Add regular state class parent [ _add ] ( regular || option ( input , callback ) || '' ) ; }
Remove checked, disabled or indeterminate state
Remove checked disabled or indeterminate state