Browse files

fint paths for list

  • Loading branch information...
1 parent 28bcbaa commit 860d35170c96b985feeb10d5a3d00caa3ccbb7c3 @hofmeister committed Feb 26, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/lib/utils.js
View
6 js/lib/utils.js
@@ -493,7 +493,7 @@
return this;
};
- $.fn.path = function (ignoreTags, stopAt, last, ignoreAttrs) {
+ $.fn.path = function (ignoreTags, stopAt, last, ignoreAttrs, forList) {
if (!ignoreTags)
ignoreTags = [];
if (!ignoreAttrs) {
@@ -589,7 +589,7 @@
if (p.length > 0) {
var triedValue = false;
- while(true) {
+ while(true && !forList) {
similarCount = p.find((name + ' ' + last).trim()).length
if (similarCount > 1) {
@@ -618,7 +618,7 @@
}
if (p) {
- return p.path(ignoreTags, stopAt, (out + ' ' + last).trim(), ignoreAttrs);
+ return p.path(ignoreTags, stopAt, (out + ' ' + last).trim(), ignoreAttrs, forList);
}

0 comments on commit 860d351

Please sign in to comment.