Skip to content

Instantly share code, notes, and snippets.

@fernandomitre7
Created September 9, 2016 23:07
Show Gist options
  • Save fernandomitre7/13f682802f57dd082c0006edaa3679e3 to your computer and use it in GitHub Desktop.
Save fernandomitre7/13f682802f57dd082c0006edaa3679e3 to your computer and use it in GitHub Desktop.
var test = (function ($, document) {
function doSomethingMethod () {
console.log(‘do something!’);
}
return {
doSomething: doSomethingMethod
};
})(window.jQuery, window.document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment