1(function (Drupal) { 2 /** 3 * Command to attach data using jQuery's data API. 4 * 5 * @param {Drupal.Ajax} [ajax] 6 * {@link Drupal.Ajax} object created by {@link Drupal.ajax}. 7 * @param {object} response 8 * The response from the Ajax request. 9 * @param {string} response.event_name 10 * The event name 11 * @param {object} response.data 12 * The value of the event. 13 */ 14 Drupal.AjaxCommands.prototype.gtagEvent = function (ajax, response) { 15 gtag('event', response.event_name, response.data); 16 }; 17})(Drupal);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.