: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
SGPBPopupPro.prototype.eventListener = function()
sgAddEvent(window, 'sgpbDidOpen', function(e) {
var popupId = parseInt(args.popupId);
var iframeTag = jQuery('.sgpb-popup-builder-content-'+popupId+' .sgpb-iframe-'+popupId);
iframeTag.load(function() {
var popupData = SGPBPopup.getPopupWindowDataById(popupId);
/* remove spinner class when popup is open*/
if (typeof popupData != 'undefined' && popupData.isOpen) {
jQuery(this).removeClass('sgpb-iframe-spiner');
sgAddEvent(window, 'sgpbDidClose', function(e) {
var popupId = parseInt(args.popupId);
var iframeTag = jQuery('.sgpb-popup-builder-content-'+popupId+' .sgpb-iframe-'+popupId);
iframeTag.each(function() {
jQuery(this).addClass('sgpb-iframe-spiner');
SGPBPopupPro.prototype.init = function()
jQuery(document).ready(function() {
var obj = new SGPBPopupPro();