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 #7701
This commit is contained in:
rodyhaddad
2014-06-04 17:28:59 -07:00
parent 1d90744f40
commit 1ec6d551bd

View File

@@ -99,7 +99,7 @@
*/
var jqCache = JQLite.cache = {},
jqName = JQLite.expando = 'ng-' + new Date().getTime(),
jqName = JQLite.expando = 'ng' + new Date().getTime(),
jqId = 1,
addEventListenerFn = (window.document.addEventListener
? function(element, type, fn) {element.addEventListener(type, fn, false);}