aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/props.html20
1 files changed, 12 insertions, 8 deletions
diff --git a/tools/props.html b/tools/props.html
index 23d1f7da..ff09a8da 100644
--- a/tools/props.html
+++ b/tools/props.html
@@ -7,7 +7,9 @@
function addObject(obj) {
if (obj == null) return;
- Object.getOwnPropertyNames(obj).forEach(add);
+ try {
+ Object.getOwnPropertyNames(obj).forEach(add);
+ } catch(ex) {}
if (obj.prototype) {
Object.getOwnPropertyNames(obj.prototype).forEach(add);
}
@@ -26,13 +28,15 @@
addObject(window[thing]);
});
- addObject(new Event("click"));
- addObject(new Event("contextmenu"));
- addObject(new Event("mouseup"));
- addObject(new Event("mousedown"));
- addObject(new Event("keydown"));
- addObject(new Event("keypress"));
- addObject(new Event("keyup"));
+ try {
+ addObject(new Event("click"));
+ addObject(new Event("contextmenu"));
+ addObject(new Event("mouseup"));
+ addObject(new Event("mousedown"));
+ addObject(new Event("keydown"));
+ addObject(new Event("keypress"));
+ addObject(new Event("keyup"));
+ } catch(ex) {}
var ta = document.createElement("textarea");
ta.style.width = "100%";