Skip to content

Commit 65e72ba

Browse files
author
dutchenkoOleg
committed
readme
1 parent b3a10a9 commit 65e72ba

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,34 +36,34 @@ Here we describe the future instances.:
3636

3737
### `_setup()`
3838

39-
`protected`
39+
_`protected`_
4040

4141
The method is designed to prepare data for initialization.
4242
For example, setting up future plugin options, etc.
4343

4444
### `_beforeInitialize()`
4545

46-
`protected`
46+
_`protected`_
4747

4848
It describes the actions that must be performed before initializing the plug-in.
4949
For 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

5555
Here we can describe the actions that should be performed after the initialization of the plugin.
5656
For 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

6262
Directly launch your plugin.
6363

6464
### `defaults`
6565

66-
`public`
66+
_`public`_
6767

6868
A 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);

0 commit comments

Comments
 (0)