0

I want to make use of JS module (iffys) in order to structure my JS functions. I'm using jQuery and pure JS. My JS modules are loaded at the end of the HTML body, so the page shall be loaded and rendered.

Is a document.ready necessairry closure? How do I have to put it, if I'm working with iffys?

JS Module

app.input = (function () {
    var updateSize = function (data) {.....
    }
    $(".tool").click(function () {....
    });
    return {
        updateSize: updateSize,
    }
})();
Tushar Gupta - curioustushar
  • 58,085
  • 24
  • 103
  • 107
user2520410
  • 459
  • 1
  • 5
  • 12

0 Answers0