Skip to content

Commit

Permalink
Move hide() method to if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar65 committed Nov 18, 2019
1 parent b30b855 commit a7ffbd6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,13 @@ define([
show: function (record) {
var img;

this.hide();

if (record._rowIndex === this.visibleRecord()) {
this.hide();

return;
}

this.hide();
this.displayedRecord(record);
this._selectRow(record.rowNumber || null);
this.visibleRecord(record._rowIndex);
Expand Down

0 comments on commit a7ffbd6

Please sign in to comment.