View Single Post
Old 04-21-2009, 11:34 PM   #8 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

I have a question about this part:

Code:
 
var pTR = pTarget.parentNode.parentNode;
        
if(pTR.nodeName.toLowerCase() != 'tr')
You're creating the variable "pTR" and setting it to:

pTarget.parentNode.parentNode

Then using it later in the next line. Are you doing this just to
shorten it so it wouldn't be so long like this?

Code:
if(pTarget.parentNode.parentNode.nodeName.toLowerCase() != 'tr')
Also, how come you're using the toLowerCase() function?
allworknoplay is offline  
Reply With Quote