I'm trying to go through current plugins to wrap my mind around how the plugins work and I'm stuck at conditions. I can't seem to wrap my mind around them. Heres an example from the browser plugin:
Cnds.prototype.OnOnline = function()
{
return true;
};
Cnds.prototype.OnOffline = function()
{
return true;
};
How does it know without some sort of conditional statement that the browser switched from online to offline? It seems from the look of it they will both always be true when referenced. What am I missing? Thanks in advance,
Lance