took .not out of the function

by checking if( !t.is( mask )) on line 132, we avoid going through each child twice.