mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 06:08:02 +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)
|
this.loadCoord = function(winId, i)
|
||||||
{
|
{
|
||||||
|
win = wins[winId];
|
||||||
|
|
||||||
// win.res is not ready when loading has not finished yet
|
// win.res is not ready when loading has not finished yet
|
||||||
if (!win.res)
|
if (!win.res)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
win = wins[winId];
|
|
||||||
var elem = win.res.snapshotItem(i);
|
var elem = win.res.snapshotItem(i);
|
||||||
|
|
||||||
if (elem)
|
if (elem)
|
||||||
|
|||||||
Reference in New Issue
Block a user