tinymce.full.js
function (name) {
        var self = this, args = Tools.toArray(arguments).slice(1);

        self.each(function (item) {
          if (item[name]) {
            item[name].apply(item, args);
          }
        });

        return self;
      }
function (name) {
        var self = this, args = Tools.toArray(arguments).slice(1);

        self.each(function (item) {
          if (item[name]) {
            item[name].apply(item, args);
          }
        });

        return self;
      }
function ( name ) { var self = this , args = Tools . toArray ( arguments ) . slice ( 1 ) ; self . each ( function ( item ) { if ( item [ name ] ) { item [ name ] . apply ( item , args ) ; } } ) ; return self ; }
Executes the specific function name with optional arguments an all items in collection if it exists.

@example collection.exec("myMethod", arg1, arg2, arg3);
@method exec
@param {String} name Name of the function to execute.
@param {Object} ... Multiple arguments to pass to each function.
@return {tinymce.ui.Collection} Current collection.
Executes the specific function name with optional arguments an all items in collection if it exists .