projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5587583
)
Element n'existe pas dans IE <=7.Element n'existe pas dans IE <=7
author
Benoît Pin
<pin@cri.ensmp.fr>
Wed, 13 Aug 2014 16:23:52 +0000
(18:23 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Wed, 13 Aug 2014 16:23:52 +0000
(18:23 +0200)
skins/ajax_scripts/javascript_events_api.js
patch
|
blob
|
history
diff --git
a/skins/ajax_scripts/javascript_events_api.js
b/skins/ajax_scripts/javascript_events_api.js
index
b93c583
..
2083018
100644
(file)
--- a/
skins/ajax_scripts/javascript_events_api.js
+++ b/
skins/ajax_scripts/javascript_events_api.js
@@
-255,11
+255,14
@@
buildMetaFunctions();
addListener(window, 'load', function(evt) {
// html5 facade
addListener(window, 'load', function(evt) {
// html5 facade
- if (!document.body.classList) {
- var nop = function(){};
- var fakeDOMTokenList = {'length':0, 'item':nop, 'contains':nop, 'add':nop, 'remove':nop, 'toggle':nop};
- Element.prototype.classList = fakeDOMTokenList;
+ try {
+ if (!document.body.classList) {
+ var nop = function(){};
+ var fakeDOMTokenList = {'length':0, 'item':nop, 'contains':nop, 'add':nop, 'remove':nop, 'toggle':nop};
+ Element.prototype.classList = fakeDOMTokenList;
+ }
}
}
+ catch (e) {}
});
});