score:0

Just use $(t) instead of $('g.node')

   'delete': function(t) {
        $(t).remove();

    }

See Demo Here


Related Query