dist/jBox.all.js
function ()
    {
      // Bail if we're stacking
      if (this.options.stack) {
          return;
      }

      // Adjust position when opening
      this._adjustNoticePositon();

      // Loop through notices at same window corner destroy them
      jQuery.each(jQuery('.jBox-Notice'), function (index, el)
      {
        el = jQuery(el);

        // Abort if the element is this notice or when it's not at the same position
        if (el.attr('id') == this.id || el.data('jBox-Notice-position') != this.options.attributes.x + '-' + this.options.attributes.y) {
          return;
        }

        // Remove notice when we don't wont to stack them
        if (!this.options.stack) {
          el.data('jBox').close({ignoreDelay: true});
          return;
        }
      }.bind(this));
    }
function ()
    {
      // Bail if we're stacking
      if (this.options.stack) {
          return;
      }

      // Adjust position when opening
      this._adjustNoticePositon();

      // Loop through notices at same window corner destroy them
      jQuery.each(jQuery('.jBox-Notice'), function (index, el)
      {
        el = jQuery(el);

        // Abort if the element is this notice or when it's not at the same position
        if (el.attr('id') == this.id || el.data('jBox-Notice-position') != this.options.attributes.x + '-' + this.options.attributes.y) {
          return;
        }

        // Remove notice when we don't wont to stack them
        if (!this.options.stack) {
          el.data('jBox').close({ignoreDelay: true});
          return;
        }
      }.bind(this));
    }
function ( ) { // Bail if we're stacking if ( this . options . stack ) { return ; } // Adjust position when opening this . _adjustNoticePositon ( ) ; // Loop through notices at same window corner destroy them jQuery . each ( jQuery ( '.jBox-Notice' ) , function ( index , el ) { el = jQuery ( el ) ; // Abort if the element is this notice or when it's not at the same position if ( el . attr ( 'id' ) == this . id || el . data ( 'jBox-Notice-position' ) != this . options . attributes . x + '-' + this . options . attributes . y ) { return ; } // Remove notice when we don't wont to stack them if ( ! this . options . stack ) { el . data ( 'jBox' ) . close ( { ignoreDelay : true } ) ; return ; } } . bind ( this ) ) ; }
Triggered when notice opens
Triggered when notice opens