diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-03 15:39:46 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-03 15:40:02 +0200 |
commit | 29c878f4400dbb508e44bc5f40f558d40906bc67 (patch) | |
tree | 67b090e34e108cc59cb936946c04ccfa994b2dae /js/menu.js | |
parent | eba4082bc9653eb24b14a8eb90cc243512e1f26a (diff) |
set a timeout for scroll event to only trigger once every 100 milisecs
Diffstat (limited to 'js/menu.js')
-rw-r--r-- | js/menu.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/menu.js b/js/menu.js index 0591fa828..2a2b930b6 100644 --- a/js/menu.js +++ b/js/menu.js @@ -179,7 +179,9 @@ var News = News || {}; id = parseInt(id); if(data.title !== undefined){ - $node.children('.title').html(data.title); + // prevent xss + var title = $('<div>').text(data.title).html(); + $node.children('.title').html(title); } if(data.undreadCount !== undefined){ |