Como acessar o atributo id de qualquer elemento no Raphael

Estou usando o Raphael para desenhar alguns elementos em um site. Os elementos incluem retângulo, linha (caminho). Eu dei um id ao elemento path e tentei acessá-lo no evento onclick dessa linha. mas quando faço um alerta do id, nada é visível. A seguir está o trecho de código

function createLine() 
{ 
  var t = paper.path("M" + xLink + " " + yLink +"L" + linkWidth + " " + linkHeight);
  t.attr('stroke-width','3');
  t.attr('id','Hello');
  t.node.onclick = processPathOnClick; 
}

function processPathOnClick() 
{
    alert($(this).attr("id"));
}

Alguém pode me dizer qual é o problema com o código acima. Qualquer ponteiro será útil.

obrigado

questionAnswers(3)

yourAnswerToTheQuestion