Skip to content

Commit

Permalink
document.uniqueID always returns unique id
Browse files Browse the repository at this point in the history
  • Loading branch information
vsesh committed Oct 24, 2016
1 parent 2c32fef commit 4cbb74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.blocks/identify/identify.vanilla.js
Expand Up @@ -11,7 +11,7 @@ var counter = 0,
},
identify = function(obj) {
if((typeof obj === 'object' && obj !== null) || typeof obj === 'function') {
var key = 'uniqueID' in obj?
var key = 'uniqueID' in obj && obj !== document ?
'uniqueID' :
expando; // Use when possible native uniqueID for elements in IE

Expand Down

0 comments on commit 4cbb74c

Please sign in to comment.