diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-02-05 16:35:19 -0500 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-02-05 16:35:19 -0500 |
commit | 8775e79e35a2fb343254fdd21b9d6d228cc97a9e (patch) | |
tree | 5d7125cb3e206f3081ba468bcc5fb8290c0a3023 /js/facebookapp.js | |
parent | 444c7944809544928e05bd71479f6551acc98fc4 (diff) | |
parent | 02eecb4f07fd4bede01bf81b441e04e68b6091ec (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'js/facebookapp.js')
-rw-r--r-- | js/facebookapp.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/js/facebookapp.js b/js/facebookapp.js index 8ef9aa532..f0696c19e 100644 --- a/js/facebookapp.js +++ b/js/facebookapp.js @@ -19,10 +19,12 @@ var max = 140; var noticeBox = document.getElementById('notice_data-text'); -noticeBox.addEventListener('keyup', keypress); -noticeBox.addEventListener('keydown', keypress); -noticeBox.addEventListener('keypress', keypress); -noticeBox.addEventListener('change', keypress); +if (noticeBox) { + noticeBox.addEventListener('keyup', keypress); + noticeBox.addEventListener('keydown', keypress); + noticeBox.addEventListener('keypress', keypress); + noticeBox.addEventListener('change', keypress); +} // Do our the countdown function keypress(evt) { |