You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it to ensure we access a protected defaults and plugin name variables which are not modifiable from outside the plugin (after the plugin initialization)?
The text was updated successfully, but these errors were encountered:
The _ prefix is a common convention for naming private variables in JavaScript. This helps to distinguish them from public variables, which are typically named without the _ prefix.
The following is a possible comment that could be added above the code:
// Store the default options and plugin name in private variables
// so that they cannot be modified from outside the plugin.
this._defaults = defaults;
this._name = pluginName;
It could be useful to get a small comment above this code :
Is it to ensure we access a protected defaults and plugin name variables which are not modifiable from outside the plugin (after the plugin initialization)?
The text was updated successfully, but these errors were encountered: