Created
May 13, 2017 18:37
-
-
Save wesruv/c0291fe03a03be15585047de08078503 to your computer and use it in GitHub Desktop.
Drupal 7 JS File Starter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file | |
* A JavaScript file that does stuff. | |
*/ | |
// JavaScript should be made compatible with libraries other than jQuery by | |
// wrapping it with an "anonymous closure". See: | |
// - https://drupal.org/node/1446420 | |
// - http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth | |
(function ($) { | |
'use strict'; | |
Drupal.behaviors.componentName = { | |
attach: function (context) { | |
} | |
} | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment