Created
December 8, 2016 16:01
-
-
Save jenter/714cda2cf097563b5363a1771b99b841 to your computer and use it in GitHub Desktop.
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
(function ($, Drupal, window, document) { | |
'use strict'; | |
// Example of Drupal behavior loaded. | |
Drupal.behaviors.exampleJS = { | |
attach: function (context, settings) { | |
if (typeof context['location'] !== 'undefined') { // Only fire on document load. | |
console.log('This is loaded'); | |
} | |
} | |
}; | |
})(jQuery, Drupal, this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment