1
0
mirror of synced 2025-02-16 20:13:16 +03:00

Stopped refresh to top when closeOnSelect: false

Not really sure how the noHighlightUpdate variable is supposed to work, it is undefined all the time so it appears to be broken. I just referred to `this.opts.closeOnSelect` to get the status directly.
This commit is contained in:
Joshua Jonah 2014-05-12 21:44:27 -04:00
parent 52425f93c8
commit 64256f27f2

View File

@ -3107,7 +3107,7 @@ the specific language governing permissions and limitations under the Apache Lic
}
});
if (this.highlight() == -1 && noHighlightUpdate !== false){
if (this.highlight() == -1 && noHighlightUpdate !== false && this.opts.closeOnSelect === true){
self.highlight(0);
}