forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
15 lines
354 B
JavaScript
15 lines
354 B
JavaScript
/* global a2a*/
|
|
(function (Drupal) {
|
|
'use strict';
|
|
|
|
Drupal.behaviors.addToAny = {
|
|
attach: function (context, settings) {
|
|
// If not the full document (it's probably AJAX), and window.a2a exists
|
|
if (context !== document && window.a2a) {
|
|
a2a.init_all(); // Init all uninitiated AddToAny instances
|
|
}
|
|
}
|
|
};
|
|
|
|
})(Drupal);
|