mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 00:17:58 +01:00
move win.res guard clause after initialisation of win in loadCoord()
This commit is contained in:
@@ -70,11 +70,12 @@ function Hints() //{{{
|
||||
|
||||
this.loadCoord = function(winId, i)
|
||||
{
|
||||
win = wins[winId];
|
||||
|
||||
// win.res is not ready when loading has not finished yet
|
||||
if (!win.res)
|
||||
return;
|
||||
|
||||
win = wins[winId];
|
||||
var elem = win.res.snapshotItem(i);
|
||||
|
||||
if (elem)
|
||||
|
||||
Reference in New Issue
Block a user