function Post(postToggles, postDeletes) {
        if (postToggles === void 0) {
            postToggles = document.querySelectorAll('.post__toggle');
        }
        if (postDeletes === void 0) {
            postDeletes = document.querySelectorAll('.delete a');
        }
        this.postToggles = postToggles;
        this.postDeletes = postDeletes;
        var _this = this;
        if (postToggles.length > 0) {
            utils.forEach(postToggles, function (i, toggle) {
                toggle.addEventListener('click', _this.togglePost);
            }, this);
        }
        if (postDeletes.length > 0) {
            utils.forEach(postDeletes, function (i, toggle) {
                toggle.addEventListener('click', _this.togglePost);
            }, this);
        }
    }
/**
     * Create control functionality for posts
     *
     * @param postToggles Elements used to toggle hiding/showing a post
     * @param postDeletes Elements used to delete a post
     */
Create control functionality for posts
@param postToggles Elements used to toggle hiding/showing a post
@param postDeletes Elements used to delete a post
Create control functionality for posts @param postToggles Elements used to toggle hiding / showing a post @param postDeletes Elements used to delete a post
function Post(postToggles, postDeletes) {
        if (postToggles === void 0) {
            postToggles = document.querySelectorAll('.post__toggle');
        }
        if (postDeletes === void 0) {
            postDeletes = document.querySelectorAll('.delete a');
        }
        this.postToggles = postToggles;
        this.postDeletes = postDeletes;
        var _this = this;
        if (postToggles.length > 0) {
            utils.forEach(postToggles, function (i, toggle) {
                toggle.addEventListener('click', _this.togglePost);
            }, this);
        }
        if (postDeletes.length > 0) {
            utils.forEach(postDeletes, function (i, toggle) {
                toggle.addEventListener('click', _this.togglePost);
            }, this);
        }
    }
function Post ( postToggles , postDeletes ) { if ( postToggles === void 0 ) { postToggles = document . querySelectorAll ( '.post__toggle' ) ; } if ( postDeletes === void 0 ) { postDeletes = document . querySelectorAll ( '.delete a' ) ; } this . postToggles = postToggles ; this . postDeletes = postDeletes ; var _this = this ; if ( postToggles . length > 0 ) { utils . forEach ( postToggles , function ( i , toggle ) { toggle . addEventListener ( 'click' , _this . togglePost ) ; } , this ) ; } if ( postDeletes . length > 0 ) { utils . forEach ( postDeletes , function ( i , toggle ) { toggle . addEventListener ( 'click' , _this . togglePost ) ; } , this ) ; } }
Create control functionality for posts
 @param postToggles Elements used to toggle hiding/showing a post
 @param postDeletes Elements used to delete a post
Create control functionality for posts @param postToggles Elements used to toggle hiding / showing a post @param postDeletes Elements used to delete a post