Removed ID from getpath

This commit is contained in:
Amazed 2018-10-25 12:03:14 +02:00
parent 72e06e2c26
commit f4fc947c62
1 changed files with 1 additions and 7 deletions

View File

@ -10,15 +10,9 @@ jQuery.fn.extend({
// Add the element name.
var cur = this[0].nodeName.toLowerCase();
// Determine the IDs and path.
var id = this.attr('id');
// Determine the path.
var cls = this.attr('class');
// Add the #id if there is one.
if ( typeof id != 'undefined' )
cur += '#' + id;
// Add any classes.
if ( typeof cls != 'undefined' )
cur += '.' + cls.split(/[\s\n]+/).join('.');