Skip to content

Commit a6b121f

Browse files
authored
Merge pull request Ionaru#592 from p1gp1g/fix/image-processing
Avoid processing many times the same image
2 parents 65dfecf + 97bf9ce commit a6b121f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js/easymde.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,6 +2268,7 @@ EasyMDE.prototype.render = function (el) {
22682268
}
22692269

22702270
if (!window.EMDEimagesCache[keySrc]) {
2271+
window.EMDEimagesCache[keySrc] = {};
22712272
var img = document.createElement('img');
22722273
img.onload = function () {
22732274
window.EMDEimagesCache[keySrc] = {

0 commit comments

Comments
 (0)