tinymce.full.js
function (selector) {
        if (typeof selector == 'function') {
          return DomQuery(grep(this.toArray(), function (item, i) {
            return selector(i, item);
          }));
        }

        return DomQuery(DomQuery.filter(selector, this.toArray()));
      }
function (selector) {
        if (typeof selector == 'function') {
          return DomQuery(grep(this.toArray(), function (item, i) {
            return selector(i, item);
          }));
        }

        return DomQuery(DomQuery.filter(selector, this.toArray()));
      }
function ( selector ) { if ( typeof selector == 'function' ) { return DomQuery ( grep ( this . toArray ( ) , function ( item , i ) { return selector ( i , item ) ; } ) ) ; } return DomQuery ( DomQuery . filter ( selector , this . toArray ( ) ) ) ; }
Filters the current set with the specified selector.

@method filter
@param {String/function} selector Selector to filter elements by.
@return {tinymce.dom.DomQuery} Set with filtered elements.
Filters the current set with the specified selector .