Skip to content

Commit 1ec6d55

Browse files
committed
chore(jqLite): remove special characters from the expando property
Having special characters in the expando property created a memory bloat. See https://code.google.com/p/chromium/issues/detail?id=378607#c6 to reproduce Closes angular#7701
1 parent 1d90744 commit 1ec6d55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jqLite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
*/
100100

101101
var jqCache = JQLite.cache = {},
102-
jqName = JQLite.expando = 'ng-' + new Date().getTime(),
102+
jqName = JQLite.expando = 'ng' + new Date().getTime(),
103103
jqId = 1,
104104
addEventListenerFn = (window.document.addEventListener
105105
? function(element, type, fn) {element.addEventListener(type, fn, false);}

0 commit comments

Comments
 (0)