Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Descriptions for connector #2892

Merged
merged 1 commit into from
Jul 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions common/plugins/connector/connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
* The command must be compatible with ONLYOFFICE Document Builder syntax.
* @param {Function} callback - The result that the method returns.
* @param {boolean} isNoCalc - Defines whether the document will be recalculated or not.
* The true value is used to recalculate the document after executing the function in the func parameter.
* The true value is used to recalculate the document after executing the function in the command parameter.
* The false value will not recalculate the document (use it only when your edits surely will not require document recalculation).
*/
EditorConnector.prototype.callCommand = function (command, callback, isNoCalc) {
Expand Down Expand Up @@ -236,10 +236,9 @@
* attachEvent
* @memberof EditorConnector
* @alias attachEvent
* @description Add event listener.
* Add the function that will be called whenever the specified event is delivered to the target.
* @param {string} name - The name of the event.
* @param {Function} callback - Listener.
* @description Adds an event listener, a function that will be called whenever the specified event is delivered to the target.
* @param {string} name - The event name.
* @param {Function} callback - The event listener.
*/
EditorConnector.prototype.attachEvent = function(name, callback) {
if (!this.isConnected) {
Expand All @@ -258,9 +257,8 @@
* detachEvent
* @memberof EditorConnector
* @alias detachEvent
* @description Remove event listener.
* Remove listener for event.
* @param {string} name - The name of the event.
* @description Removes an event listener.
* @param {string} name - The event name.
*/
EditorConnector.prototype.detachEvent = function(name) {
if (!this.events[name])
Expand Down