tinymce.full.js
function (items, sort) {
        var self = this, nodes, i;

        if (isString(items)) {
          return self.add(DomQuery(items));
        }

        if (sort !== false) {
          nodes = DomQuery.unique(self.toArray().concat(DomQuery.makeArray(items)));
          self.length = nodes.length;
          for (i = 0; i < nodes.length; i++) {
            self[i] = nodes[i];
          }
        } else {
          push.apply(self, DomQuery.makeArray(items));
        }

        return self;
      }
function (items, sort) {
        var self = this, nodes, i;

        if (isString(items)) {
          return self.add(DomQuery(items));
        }

        if (sort !== false) {
          nodes = DomQuery.unique(self.toArray().concat(DomQuery.makeArray(items)));
          self.length = nodes.length;
          for (i = 0; i < nodes.length; i++) {
            self[i] = nodes[i];
          }
        } else {
          push.apply(self, DomQuery.makeArray(items));
        }

        return self;
      }
function ( items , sort ) { var self = this , nodes , i ; if ( isString ( items ) ) { return self . add ( DomQuery ( items ) ) ; } if ( sort !== false ) { nodes = DomQuery . unique ( self . toArray ( ) . concat ( DomQuery . makeArray ( items ) ) ) ; self . length = nodes . length ; for ( i = 0 ; i < nodes . length ; i ++ ) { self [ i ] = nodes [ i ] ; } } else { push . apply ( self , DomQuery . makeArray ( items ) ) ; } return self ; }
Adds new nodes to the set.

@method add
@param {Array/tinymce.core.dom.DomQuery} items Array of all nodes to add to set.
@param {Boolean} sort Optional sort flag that enables sorting of elements.
@return {tinymce.dom.DomQuery} New instance with nodes added.
Adds new nodes to the set .