Skip to content

Instantly share code, notes, and snippets.

@vielhuber
Last active September 22, 2017 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vielhuber/cb5f5ed86ccdb1d531aec7214d901cee to your computer and use it in GitHub Desktop.
Save vielhuber/cb5f5ed86ccdb1d531aec7214d901cee to your computer and use it in GitHub Desktop.
call function from another file in jQuery Scope #js
"use strict";
(function ($) {
window.customFunction() = function() {
alert('FOO');
}
})(jQuery);
"use strict";
(function ($) {
customFunction();
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment