Skip to content

Instantly share code, notes, and snippets.

@doublejosh
Last active June 16, 2016 18:54
Show Gist options
  • Select an option

  • Save doublejosh/bd7f295576520b935af462b8a6e37bfe to your computer and use it in GitHub Desktop.

Select an option

Save doublejosh/bd7f295576520b935af462b8a6e37bfe to your computer and use it in GitHub Desktop.
Drupal behavior without indents template
// Ensure and setup namespace.
var Tabia = window.Tabia || {};
(function ($, module) {
// Add utility functions.
module.myFunction = function () {
console.log('Separate files are nice');
};
})(jQuery, Tabia.myNamespace = {});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment