Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Belgian Biodiversity Platform
yeti
Commits
4f3d9b81
Commit
4f3d9b81
authored
Dec 13, 2012
by
Julien Cigar
Browse files
remove old event hack
parent
ec591957
Changes
1
Hide whitespace changes
Inline
Side-by-side
core.js
View file @
4f3d9b81
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* "THE BEER-WARE LICENSE" (Revision 42):
* "THE BEER-WARE LICENSE" (Revision 42):
* <julien.cigar@gmail.com> wrote this file. As long as you retain this notice
* <julien.cigar@gmail.com> wrote this file. As long as you retain this notice
* you can do whatever you want with this stuff. If we meet some day, and you
* you can do whatever you want with this stuff. If we meet some day, and you
* think this stuff is worth it, you can buy me a beer in return
Julien Cigar
.
* think this stuff is worth it, you can buy me a beer in return.
* ----------------------------------------------------------------------------
* ----------------------------------------------------------------------------
*/
*/
...
@@ -362,7 +362,8 @@
...
@@ -362,7 +362,8 @@
el
.
addEventListener
(
type
,
listener
,
capture
);
el
.
addEventListener
(
type
,
listener
,
capture
);
}
else
if
(
el
.
attachEvent
)
{
}
else
if
(
el
.
attachEvent
)
{
/* In IE events always bubble, no capturing possibility. */
/* In IE events always bubble, no capturing possibility. */
//el.attachEvent('on' + type, listener);
el
.
attachEvent
(
'
on
'
+
type
,
listener
);
/*
var _type = 'on' + type;
var _type = 'on' + type;
if (el[_type] === null) {
if (el[_type] === null) {
...
@@ -372,6 +373,7 @@
...
@@ -372,6 +373,7 @@
el[_type](); listener();
el[_type](); listener();
}
}
}
}
*/
}
else
{
}
else
{
;
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment