File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -36,34 +36,34 @@ Here we describe the future instances.:
3636
3737### ` _setup() `
3838
39- ` protected `
39+ _ ` protected ` _
4040
4141The method is designed to prepare data for initialization.
4242For example, setting up future plugin options, etc.
4343
4444### ` _beforeInitialize() `
4545
46- ` protected `
46+ _ ` protected ` _
4747
4848It describes the actions that must be performed before initializing the plug-in.
4949For example, add the CSS class ` .is-ready ` to the HTML element to which your plugin will be applied.
5050
5151### ` _afterInitialize() `
5252
53- ` protected `
53+ _ ` protected ` _
5454
5555Here we can describe the actions that should be performed after the initialization of the plugin.
5656For example, add an additional handler to scroll or resize window events, which will update the parameters of your current plugin.
5757
5858### ` initialize() `
5959
60- ` public `
60+ _ ` public ` _
6161
6262Directly launch your plugin.
6363
6464### ` defaults `
6565
66- ` public `
66+ _ ` public ` _
6767
6868A getter that returns an object with default options, settings, or configuration for your plugin.
6969
@@ -99,17 +99,17 @@ export class SomeJqueryPluginAbstract extends WebPluginInterface {
9999 }
100100
101101 /** @protected */
102- _beforeInitialize () {
102+ _beforeInitialize () {
103103 this .$container .addClass (this .readyCssClass );
104104 }
105105
106106 /** @protected */
107- _afterInitialize () {
108- this .$container .addClass (this .initializedCssClass )
107+ _afterInitialize () {
108+ this .$container .addClass (this .initializedCssClass );
109109 }
110110
111111 /** @public */
112- initialize () {
112+ initialize () {
113113 this ._setup ();
114114 this ._beforeInitialize ();
115115 this .$container .someJqueryPlugin (this .settings );
You can’t perform that action at this time.
0 commit comments