Artist Profile Thumbnails

by nickadeemus2002

HTML

<div><a href="#" id="selector">click me!</a></div>

JavaScript

$(document).ready(function(){

function Foo(){};
Foo.prototype={    
    
  t : "123",
  bar: function(){
      
        // I am here
        $('#selector').bind('click', this.foo);
  
   },
   foo: function(){
       //I want when to be able to use the current object here by this
         //this.t should be 123 and this.bar should call the above function
        //console.log(this);
alert('yo');       
       return false;
  }

};

                  
                  
                  

});