mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
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:
@@ -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);}
|
||||
|
||||
Reference in New Issue
Block a user