if (this.queries[key].media !== evt.media)
        continue;

to save a indent.