Nope.
 
This:
 
  var $thisCell, $tgt = $(event.target);

does not mean:
 
  var $thisCell = $(event.target);
  var $tgt = $(event.target);
 
After all, there's only one jQuery object being created in the first
example, and two distinct objects in the second.
 
Nor does it set both variables to the same object, like this code:
 
  var $thisCell, $tgt;
  $thisCell = $tgt = $(event.target);

What it really means is:
 
  var $thisCell;
  var $tgt = $(event.target);

-Mike



  _____  

From: Richard D. Worth

Yup. See

https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Statements/Va
r

- Richard


On Thu, May 14, 2009 at 2:12 AM, runrunforest <craigco...@gmail.com> wrote:



Hi,

I see this line in a plugin

var $thisCell, $tgt = $(event.target);

does that mean:

var $thisCell = $(event.target);
var $tgt = $(event.target);



Reply via email to