<button class="js_btn" data-id="23"></button>
var myApp = {
setListeners: function() {
$('.js_btn').on('click', $.proxy(this.myMethod, this));
},
myMethod: function() {
var id = $(this).data('id');
console.log(id);
}
}
myApp.setListeners();