plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js
function getDepth(ancestor, descendant) {
      var ret = 0;
      while (descendant !== ancestor) {
          ret++;
          descendant = descendant.parentNode;
          if (!descendant)
              throw new Error("not a descendant of ancestor!");
      }
      return ret;
  }
function getDepth(ancestor, descendant) {
      var ret = 0;
      while (descendant !== ancestor) {
          ret++;
          descendant = descendant.parentNode;
          if (!descendant)
              throw new Error("not a descendant of ancestor!");
      }
      return ret;
  }
function getDepth ( ancestor , descendant ) { var ret = 0 ; while ( descendant !== ancestor ) { ret ++ ; descendant = descendant . parentNode ; if ( ! descendant ) throw new Error ( "not a descendant of ancestor!" ) ; } return ret ; }
Provides the depth of ``descendant`` relative to ``ancestor``
Provides the depth of descendant relative to ancestor