code: function(elm, selector) {
        var all, cur;
  
        all = document.querySelectorAll(selector);
        cur = elm.parentNode;
  
        while (cur && !hashedit.collectionHas(all, cur)) { //keep going up until you find a match
          cur = cur.parentNode; //go up
        }
        return cur; //will return null if not found
      }
docs: Find the parent by a selector ref: http://stackoverflow.com/questions/14234560/javascript-how-to-get-parent-element-by-selector
  @param {Array} config.sortable