Skip to content

Commit 29cc3d7

Browse files
committed
1 parent 40c9c28 commit 29cc3d7

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

core/modules/outside_in/js/off-canvas.es6.js

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@
1111

1212
(($, Drupal, debounce, displace) => {
1313
/**
14-
* Attaches off-canvas dialog behaviors.
15-
*
16-
* @type {Drupal~behavior}
14+
* what goes here???
1715
*
18-
* @prop {Drupal~behaviorAttach} attach
19-
* Attaches event listeners for off-canvas dialogs.
16+
* @namespace
2017
*/
2118
Drupal.offCanvas = {
2219

@@ -61,8 +58,10 @@
6158
of: window,
6259
};
6360

64-
// Applies initial height to dialog based on window height.
65-
// See http://api.jqueryui.com/dialog for all dialog options.
61+
/**
62+
* Applies initial height to dialog based on window height.
63+
* @see http://api.jqueryui.com/dialog for all dialog options.
64+
*/
6665
settings.height = $(window).height();
6766
},
6867

@@ -222,6 +221,14 @@
222221
},
223222
};
224223

224+
/**
225+
* Attaches off-canvas dialog behaviors.
226+
*
227+
* @type {Drupal~behavior}
228+
*
229+
* @prop {Drupal~behaviorAttach} attach
230+
* Attaches event listeners for off-canvas dialogs.
231+
*/
225232
Drupal.behaviors.offCanvasEvents = {
226233
attach: () => {
227234
$(window).once('off-canvas').on({

0 commit comments

Comments
 (0)