title: jquery prevent duplicate function assigned
body: <p>If I need to assign a click function dynamically, is there a way to ensure the click function is only assigned once and not duplicated?</p>
  
  <pre><code>this.click(function(){
      alert('test');
  })
  </code></pre>