function computedItems(newVal, oldVal) {
        // Reset for selectable
        this.lastRowClicked = -1;
        this.$emit('input', newVal);
        var equal = false;

        if (this.selectable && this.selectedRows.length > 0) {
          // Quick check against array length
          equal = isArray(newVal) && isArray(oldVal) && newVal.length === oldVal.length;

          for (var i = 0; equal && i < newVal.length; i++) {
            // Look for the first non-loosely equal row, after ignoring reserved fields
            equal = looseEqual(sanitizeRow(newVal[i]), sanitizeRow(oldVal[i]));
          }
        }

        if (!equal) {
          this.clearSelected();
        }
      }
// Watch for changes on computedItems and update the v-model
Watch for changes on computedItems and update the v-model
Watch for changes on computedItems and update the v - model
function computedItems(newVal, oldVal) {
        this.lastRowClicked = -1;
        this.$emit('input', newVal);
        var equal = false;
        if (this.selectable && this.selectedRows.length > 0) {
          equal = isArray(newVal) && isArray(oldVal) && newVal.length === oldVal.length;
          for (var i = 0; equal && i < newVal.length; i++) {
            equal = looseEqual(sanitizeRow(newVal[i]), sanitizeRow(oldVal[i]));
          }
        }
        if (!equal) {
          this.clearSelected();
        }
      }
function computedItems ( newVal , oldVal ) { this . lastRowClicked = - 1 ; this . $emit ( 'input' , newVal ) ; var equal = false ; if ( this . selectable && this . selectedRows . length > 0 ) { equal = isArray ( newVal ) && isArray ( oldVal ) && newVal . length === oldVal . length ; for ( var i = 0 ; equal && i < newVal . length ; i ++ ) { equal = looseEqual ( sanitizeRow ( newVal [ i ] ) , sanitizeRow ( oldVal [ i ] ) ) ; } } if ( ! equal ) { this . clearSelected ( ) ; } }
Watch for changes on computedItems and update the v-model
Watch for changes on computedItems and update the v - model
// Reset for selectable // Quick check against array length // Look for the first non-loosely equal row, after ignoring reserved fields