# notificationx/3.3.0/vendor/wpdeveloper/lib-utility/scripts/jquery.ud.execute-triggers.js

NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner &amp; Floating Notification Bar, version 3.3.0. 1 lines.

- Page: https://pluginprobe.com/plugins/notificationx/3.3.0/code/vendor/wpdeveloper/lib-utility/scripts/jquery.ud.execute-triggers.js
- Raw: https://pluginprobe.com/plugins/notificationx/3.3.0/raw/vendor/wpdeveloper/lib-utility/scripts/jquery.ud.execute-triggers.js
- Modified: 2024-05-21T07:46:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/notificationx/3.3.0/code/vendor/wpdeveloper/lib-utility/scripts/jquery.ud.execute-triggers.js#L10-L20`.

```javascript
!function(a){"use strict";a.fn.execute_triggers=function(b){b=a.extend({element:this,ux:{},timers:{},debug:!1},b);var c=this.log=function(a,c){b.debug&&window.console&&console.debug&&("error"===c?console.error(a):console.log(a))},d=(this.enable=function(){c("execute_triggers::enable()"),a(b.element).each(function(){"undefined"!=typeof a(this).attr("execute_once")?a(this).one("click",function(a){d(a)}):a(this).unbind("click").bind("click",function(a){d(a)})})},this.execute_triggers=function(b){c("execute_triggers::execute_triggers()"),b.preventDefault();var d=a.extend(!0,{position:[b.clientX,b.clientY],attributes:{},element:b.currentTarget,triggers:a(b.currentTarget).attr("execute_triggers")},b);"undefined"!=typeof d.triggers&&""!=d.triggers&&(a.each(d.element.attributes,function(a,b){d.attributes[b.name]=b.value}),d.triggers=d.triggers.split(","),a.each(d.triggers,function(b,c){d.triggers[b]=a.trim(c)}),a.each(d.triggers,function(b,c){d.this_trigger_count=b,a(document).trigger(c,d)}))});return this.enable(),this}}(jQuery);
```
