diff --git a/dist/js/jQueryGetPath.js b/dist/js/jQueryGetPath.js index e131722..dfc2fda 100644 --- a/dist/js/jQueryGetPath.js +++ b/dist/js/jQueryGetPath.js @@ -1,6 +1,6 @@ /* globals jQuery */ jQuery.fn.extend({ - getPath: function(){ + getPath: function () { "use strict"; var path; var node = this; @@ -19,7 +19,7 @@ jQuery.fn.extend({ var tag = uniqueTags[i]; var tagValue = node.attr(tag); if (tagValue && (tagValue.trim !== '')) { - name += '[' + tag + '=\"' + tagValue + '\"]'; + name = '[' + tag + '=\"' + tagValue + '\"]'; //we've found a unique identifier so we're done uniqueIdentifierFound = true; break; //exit for loop diff --git a/src/js/jQueryGetPath.js b/src/js/jQueryGetPath.js index e131722..dfc2fda 100644 --- a/src/js/jQueryGetPath.js +++ b/src/js/jQueryGetPath.js @@ -1,6 +1,6 @@ /* globals jQuery */ jQuery.fn.extend({ - getPath: function(){ + getPath: function () { "use strict"; var path; var node = this; @@ -19,7 +19,7 @@ jQuery.fn.extend({ var tag = uniqueTags[i]; var tagValue = node.attr(tag); if (tagValue && (tagValue.trim !== '')) { - name += '[' + tag + '=\"' + tagValue + '\"]'; + name = '[' + tag + '=\"' + tagValue + '\"]'; //we've found a unique identifier so we're done uniqueIdentifierFound = true; break; //exit for loop