Commit 3604d148 authored by John Resig's avatar John Resig

IE doesn't like doing attaching the mergeNum property to XML documents, so for...

IE doesn't like doing attaching the mergeNum property to XML documents, so for now, we're just going to (possibly) return duplicates in IE, in XML documents. (bug #1357).
parent eb5529ea
...@@ -1666,11 +1666,15 @@ jQuery.extend({ ...@@ -1666,11 +1666,15 @@ jQuery.extend({
unique: function(first) { unique: function(first) {
var r = [], num = jQuery.mergeNum++; var r = [], num = jQuery.mergeNum++;
try {
for ( var i = 0, fl = first.length; i < fl; i++ ) for ( var i = 0, fl = first.length; i < fl; i++ )
if ( num != first[i].mergeNum ) { if ( num != first[i].mergeNum ) {
first[i].mergeNum = num; first[i].mergeNum = num;
r.push(first[i]); r.push(first[i]);
} }
} catch(e) {
r = first;
}
return r; return r;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment