PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/bilosproperties.com/wp-content/plugins/js_composer/assets/js/lib/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/bilosproperties.com/wp-content/plugins/js_composer/assets/js/lib/events.js |
if ( ! window.vc ) { var vc = {}; } (function ( $ ) { var ListenerHelper = vc.events = {}; _.extend( ListenerHelper, Backbone.Events ); /** * Used to trigger shortcodes events (just alias and shortcut) * * @param eventType * @param shortcodeModel */ ListenerHelper.triggerShortcodeEvents = function ( eventType, shortcodeModel ) { var shortcodeTag; shortcodeTag = shortcodeModel.get( 'shortcode' ); this.trigger( 'shortcodes', shortcodeModel, eventType ); this.trigger( 'shortcodes:' + shortcodeTag, shortcodeModel, eventType ); this.trigger( 'shortcodes:' + eventType, shortcodeModel ); this.trigger( 'shortcodes:' + shortcodeTag + ':' + eventType, shortcodeModel ); // Now trigger shortcode params events this.triggerParamsEvents( eventType, shortcodeModel ); }; /** * Used to trigger shortcodes params events for exact param * @param eventType * @param shortcodeModel */ ListenerHelper.triggerParamsEvents = function ( eventType, shortcodeModel ) { var shortcodeTag, params, settings; shortcodeTag = shortcodeModel.get( 'shortcode' ); params = shortcodeModel.get( 'params' ); // can be received only when main "add" event called! settings = vc.map[ shortcodeTag ]; if ( _.isArray( settings.params ) ) { _.each( settings.params, function ( paramSettings ) { // Also triggering changes for params this.trigger( 'shortcodes:' + eventType + ':param', shortcodeModel, params[ paramSettings.param_name ], paramSettings ); this.trigger( 'shortcodes:' + shortcodeTag + ':' + eventType + ':param', shortcodeModel, params[ paramSettings.param_name ], paramSettings ); this.trigger( 'shortcodes:' + eventType + ':param:type:' + paramSettings.type, shortcodeModel, params[ paramSettings.param_name ], paramSettings ); this.trigger( 'shortcodes:' + shortcodeTag + ':' + eventType + ':param:type:' + paramSettings.type, shortcodeModel, params[ paramSettings.param_name ], paramSettings ); this.trigger( 'shortcodes:' + eventType + ':param:name:' + paramSettings.param_name, shortcodeModel, params[ paramSettings.param_name ], paramSettings ); this.trigger( 'shortcodes:' + shortcodeTag + ':' + eventType + ':param:name:' + paramSettings.param_name, shortcodeModel, params[ paramSettings.param_name ], paramSettings ); }, this ); } }; })( window.jQuery );