spotlight: Add prefetch.

This commit is contained in:
Max Goodman
2013-03-07 03:45:43 -08:00
parent c9400ecb3e
commit 66cafe7afb

View File

@@ -139,6 +139,12 @@ r.spotlight._advance = function(dir) {
$next.show()
this.help($next)
// prefetch forward and backward if advanced beyond default state
if (this.lineup.pos != 0) {
this._materializePos(this._advancePos(1))
this._materializePos(this._advancePos(-1))
}
}, this))
}