Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
98f4e57a
Verified
Commit
98f4e57a
authored
Sep 10, 2017
by
larowlan
Browse files
Issue
#2903297
by drpal, droplet, tedbow: [Performance] Remove unused event triggers and listeners
parent
5ce32930
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/settings_tray/js/off-canvas.es6.js
View file @
98f4e57a
...
...
@@ -107,10 +107,8 @@
const
eventData
=
{
settings
,
$element
,
offCanvasDialog
:
this
};
$element
.
on
(
'
dialogresize.off-canvas
'
,
eventData
,
debounce
(
Drupal
.
offCanvas
.
bodyPadding
,
100
))
.
on
(
'
dialogContentResize.off-canvas
'
,
eventData
,
Drupal
.
offCanvas
.
handleDialogResize
)
.
on
(
'
dialogContentResize.off-canvas
'
,
eventData
,
debounce
(
Drupal
.
offCanvas
.
bodyPadding
,
100
))
.
trigger
(
'
dialogresize.off-canvas
'
);
.
on
(
'
dialogContentResize.off-canvas
'
,
eventData
,
Drupal
.
offCanvas
.
bodyPadding
);
Drupal
.
offCanvas
.
getContainer
(
$element
).
attr
(
`data-offset-
${
Drupal
.
offCanvas
.
getEdge
()}
`
,
''
);
...
...
core/modules/settings_tray/js/off-canvas.js
View file @
98f4e57a
...
...
@@ -51,7 +51,7 @@
var
eventData
=
{
settings
:
settings
,
$element
:
$element
,
offCanvasDialog
:
this
};
$element
.
on
(
'
dialogresize.off-canvas
'
,
eventData
,
debounce
(
Drupal
.
offCanvas
.
bodyPadding
,
100
)).
on
(
'
dialogContentResize.off-canvas
'
,
eventData
,
Drupal
.
offCanvas
.
handleDialogResize
).
on
(
'
dialogContentResize.off-canvas
'
,
eventData
,
debounce
(
Drupal
.
offCanvas
.
bodyPadding
,
100
)).
trigger
(
'
dialogresize.off-canvas
'
);
$element
.
on
(
'
dialogContentResize.off-canvas
'
,
eventData
,
Drupal
.
offCanvas
.
handleDialogResize
).
on
(
'
dialogContentResize.off-canvas
'
,
eventData
,
Drupal
.
offCanvas
.
bodyPadding
);
Drupal
.
offCanvas
.
getContainer
(
$element
).
attr
(
'
data-offset-
'
+
Drupal
.
offCanvas
.
getEdge
(),
''
);
...
...
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