tinymce.full.js
function unique(array) {
      var uniqueItems = [], i = array.length, item;

      while (i--) {
        item = array[i];

        if (!item.__checked) {
          uniqueItems.push(item);
          item.__checked = 1;
        }
      }

      i = uniqueItems.length;
      while (i--) {
        delete uniqueItems[i].__checked;
      }

      return uniqueItems;
    }
function unique(array) {
      var uniqueItems = [], i = array.length, item;

      while (i--) {
        item = array[i];

        if (!item.__checked) {
          uniqueItems.push(item);
          item.__checked = 1;
        }
      }

      i = uniqueItems.length;
      while (i--) {
        delete uniqueItems[i].__checked;
      }

      return uniqueItems;
    }
function unique ( array ) { var uniqueItems = [ ] , i = array . length , item ; while ( i -- ) { item = array [ i ] ; if ( ! item . __checked ) { uniqueItems . push ( item ) ; item . __checked = 1 ; } } i = uniqueItems . length ; while ( i -- ) { delete uniqueItems [ i ] . __checked ; } return uniqueItems ; }
Produces an array with a unique set of objects. It will not compare the values
but the references of the objects.

@private
@method unqiue
@param {Array} array Array to make into an array with unique items.
@return {Array} Array with unique items.
Produces an array with a unique set of objects . It will not compare the values but the references of the objects .