annotate vendor/chi-teck/drupal-code-generator/templates/d7/javascript.twig @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
rev   line source
Chris@0 1 /**
Chris@0 2 * {{ name }} behaviors.
Chris@0 3 */
Chris@0 4 (function ($) {
Chris@0 5
Chris@0 6 /**
Chris@0 7 * Behavior description.
Chris@0 8 */
Chris@4 9 Drupal.behaviors.{{ machine_name|camelize(false) }} = {
Chris@0 10 attach: function (context, settings) {
Chris@0 11
Chris@0 12 console.log('It works!');
Chris@0 13
Chris@0 14 }
Chris@0 15 }
Chris@0 16
Chris@0 17 }(jQuery));