tinymce.full.js
function (ctrl) {
        var self = this, i = self.length;

        while (i--) {
          if (self[i] === ctrl) {
            break;
          }
        }

        return i;
      }
function (ctrl) {
        var self = this, i = self.length;

        while (i--) {
          if (self[i] === ctrl) {
            break;
          }
        }

        return i;
      }
function ( ctrl ) { var self = this , i = self . length ; while ( i -- ) { if ( self [ i ] === ctrl ) { break ; } } return i ; }
Finds the index of the specified control or return -1 if it isn't in the collection.

@method indexOf
@param {Control} ctrl Control instance to look for.
@return {Number} Index of the specified control or -1.
Finds the index of the specified control or return - 1 if it isn t in the collection .