Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

Commit

Permalink
add missing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Feb 29, 2016
1 parent a03811b commit 74c0aaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/editor-common/assets/ZSSRichTextEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,8 @@ ZSSEditor.markImageUploadDone = function(imageNodeIdentifier) {
// Wrap link around image
var linkTag = '<a href="' + imageNode.attr("src") + '"></a>';
imageNode.wrap(linkTag);

// We invoke the sendImageReplacedCallback with a delay to avoid for
// it to be ignored by the webview because of the previous callback being done.
var thisObj = this;
setTimeout(function() { thisObj.sendImageReplacedCallback(imageNodeIdentifier);}, 500);
};
Expand Down

0 comments on commit 74c0aaf

Please sign in to comment.