I have made this code to resize ALL divs when one div is greater than other divs. The code executes on load then I want my nested function to work when window resizes. I am getting an error that resizeAgain() is not defined.
Updated: 
Forgot callback: sameSize('.content', '.col1', '.col2');
    <body onresize="resizeAgain()">
         function sameSize(e, selector1, selector2) {
        var slave = $(selector1).height();
        var master = $(selector2).height();
        var maxHeight = Math.max(slave, master);
        $(e).height(maxHeight);
        function resizeAgain() {
            $(e).css('height','');
            $(e).height(maxHeight);
        }
        sameSize('.content', '.col1', '.col2');
 
     
     
     
    