jQuery access to this event in new object
<p>I want to get access to the data-global-id value in the following markup and I am not sure how to do this due to scoping.</p>

<p>For example:</p>

<pre><code>&lt;div data-global-id="168" class="remove-as-favorite"&gt;remove as favorite&lt;/div&gt;

$('.remove-as-favorite').on('click',function(){
  var global_id=$(this).data('global-id');
  // this works
  alert('here i am in something: ' + global_id);
  // this doesn't work
  event_handler.remove_as_favorite(); 
});


// want to access the data-global-id value in here; how to get access to this?
event_handler={
remove_as_favorite: function(){
    // how to get access to this here; assuming this refers to event_handler 
    var global_id=$(this).data('global-id');
    alert("here i am global_id:" + global_id);
  }
}
</code></pre>

<p>thx</p>

<p>** edit 1 ** 
<img src="http://i.stack.imgur.com/BmOtP.png" alt="enter image description here"></p>
