Commit 58c36385 authored by Alexander.Trofimov's avatar Alexander.Trofimov

send array of asc_CCommentData on asc_onAddComments event instead array of objects

parent eb5d725b
......@@ -690,9 +690,9 @@
}
}
});
var commentList = this.cellCommentator.prepareComments(this.model.aComments);
if (0 < commentList.length) {
this.handlers.trigger("asc_onAddComments", commentList);
this.cellCommentator.prepareComments(this.model.aComments);
if (0 < this.model.aComments.length) {
this.handlers.trigger("asc_onAddComments", this.model.aComments);
}
this.clipboard.Api = this.Api;
......
......@@ -1160,9 +1160,9 @@
};
WorksheetView.prototype._prepareComments = function () {
var commentList = this.cellCommentator.prepareComments( this.model.aComments );
if ( 0 < commentList.length ) {
this.model.workbook.handlers.trigger( "asc_onAddComments", commentList );
this.cellCommentator.prepareComments( this.model.aComments );
if ( 0 < this.model.aComments.length ) {
this.model.workbook.handlers.trigger( "asc_onAddComments", this.model.aComments );
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment