I am using reveal module pattern but can't call the method.
$(function () {   
       $(document).on("click", '.EditBill', function () {
        editModule.EditBill(this);
    }); 
});
var editModule = (function () {
    function EditBill(object) {
        var itemId = $(object).data('itemid');
        loader.show();
        $.ajax({
            url: 'Bill/Edit',
            data: { id: ItemId },
            success: function (data) {
                loader.hide();
                $('#ModelPopup').empty();
                $('#ModelPopup').html(data);
                $(function () {
                    $('#editModal').modal();     
                });
            }
        });
    }
    return 
    {
        EditBill: EditBill
    } 
    }());
When I debug in Edge, I click the button ('.EditBill'), the message is
> SCRIPT5007: Unable to get property 'EditBill' of undefined or null
Thanks for Shyju, the answer is return and the first curly brace '{', should be on the same line! It works now. I don't understand why I have to follow this syntas, but it works.
