```js
this.messages.some(function(message, index) {
  if (message.requestURL == evt.detail.requestURL &&
      message.isApp === evt.detail.isApp) {
    this.renderPanels(evt.detail, this.messages[index]);
    this.messages.splice(index, 1);
    return true;
  }
}, this);
```