Template:Peking2012 Color Modeling

From 2012.igem.org

(Difference between revisions)
m
m
Line 82: Line 82:
     subLhght_Cur[sublists_Cur]=subLhght[sublists_Cur];
     subLhght_Cur[sublists_Cur]=subLhght[sublists_Cur];
     subLhand_Growth = null;
     subLhand_Growth = null;
-
    if (sublists_Cur!=sublists_Now)
 
-
    {
 
-
      subLhand_Return = setTimeout(listReturn,3000);
 
-
    }
 
-
    else
 
-
    {
 
-
      subLhand_Return = null;
 
-
    }
 
   }
   }
   else
   else
Line 119: Line 111:
function listTrigger(i)
function listTrigger(i)
{
{
 +
  if (subLhand_Return) {clearTimeout(subLhand_Return);subLhand_Return=null;}
   if (i!=sublists_Cur)
   if (i!=sublists_Cur)
   {
   {
Line 134: Line 127:
     listGrowth();
     listGrowth();
   }
   }
 +
}
 +
function listReset()
 +
{
 +
  if (sublists_Cur!=sublists_Now) {subLhand_Return = setTimeout(listReturn,3000);}
 +
  else {subLhand_Return = null;}
}
}
/*DEBUG*/
/*DEBUG*/

Revision as of 09:39, 14 September 2012