diff options
author | wei <> | 2006-01-16 05:24:58 +0000 |
---|---|---|
committer | wei <> | 2006-01-16 05:24:58 +0000 |
commit | 6da2f379b1b4ddd0c27db2185ca7408b43a9a97a (patch) | |
tree | 22bf32c844fa78987c1c37ff2ff9d328156dfd29 /framework/Web/Javascripts | |
parent | 443d8a9de12f1feb7bc6a3275ad3e09cb6e28640 (diff) |
Diffstat (limited to 'framework/Web/Javascripts')
-rw-r--r-- | framework/Web/Javascripts/extended/event.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/extended/event.js b/framework/Web/Javascripts/extended/event.js index 4a35ba78..dd72d60e 100644 --- a/framework/Web/Javascripts/extended/event.js +++ b/framework/Web/Javascripts/extended/event.js @@ -16,7 +16,7 @@ Object.extend(Event, { if (name == 'keypress' &&
((navigator.appVersion.indexOf('AppleWebKit') > 0)
- || element.attachEvent))
+ || (element && element.attachEvent)))
name = 'keydown';
this._observeAndCache(element, name, observer, useCapture);
|