Commit 80e0438a authored by Julien Cigar's avatar Julien Cigar
Browse files

remove useless test ..

parent b8080f63
...@@ -406,12 +406,8 @@ ...@@ -406,12 +406,8 @@
// Prevent a memory leak in IE. // Prevent a memory leak in IE.
try { try {
// Check if delete is supported // Check if delete is supported
if (delete({})) { delete(obj[type + listener]);
delete(obj[type + listener]); delete(obj['__e' + type + listener]);
delete(obj['__e' + type + listener]);
} else {
throw "delete";
};
} catch(e) { } catch(e) {
obj[type + listener] = null; obj[type + listener] = null;
obj['__e' + type + listener] = null; obj['__e' + type + listener] = null;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment