code: function () {
          var self = this;
  
          // Unbind all events bound to window/document by editor instance
          if (self.boundEvents) {
            var i = self.boundEvents.length;
  
            while (i--) {
              var item = self.boundEvents[i];
              this.events.unbind(item[0], item[1], item[2]);
            }
  
            self.boundEvents = null;
          }
  
          // Restore sizzle document to window.document
          // Since the current document might be removed producing "Permission denied" on IE see #6325
          if (Sizzle.setDocument) {
            Sizzle.setDocument();
          }
  
          self.win = self.doc = self.root = self.events = self.frag = null;
        }
docs: Destroys all internal references to the DOM to solve IE leak issues.
  
  @method destroy