ellm
1/28/2016 - 6:36 PM

JavaScript - Module Example using Init

JavaScript - Module Example using Init

var ModuleExample = {
  init: function() {
    var _self = this;
    var varExample = $('form.variations_form');
    
    function exampleFunction() {
      console.log(this);
    }
  }
};

ModuleExample.init();