mirror of
https://github.com/a2nt/webpack-bootstrap-ui-kit.git
synced 2024-10-22 11:05:45 +02:00
IMPR: events router
This commit is contained in:
parent
5e4067818a
commit
268044c6bf
@ -16,17 +16,18 @@ const EventsUI = (($) => {
|
||||
|
||||
class EventsUI {
|
||||
static process(el, args) {
|
||||
let modEl = el;
|
||||
const eventName = args[0];
|
||||
const tagName = typeof el !== undefined ? $(el).prop('tagName') : null;
|
||||
|
||||
switch (tagName) {
|
||||
case 'HTML':
|
||||
case 'BODY':
|
||||
el = $W;
|
||||
modEl = $W;
|
||||
break;
|
||||
}
|
||||
|
||||
return [el, args];
|
||||
return [modEl, args];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user