Skip to content

Commit 0cdec79

Browse files
jbedardmarkelog
authored andcommitted
Data: avoid non-alphanumeric chars in expando properties
Ref chromium issue 378607 Ref #14839 Closes gh-1662
1 parent b807aed commit 0cdec79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data/Data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function Data() {
1414
}
1515
});
1616

17-
this.expando = jQuery.expando + Math.random();
17+
this.expando = jQuery.expando + Data.uid++;
1818
}
1919

2020
Data.uid = 1;

0 commit comments

Comments
 (0)