- var img$ = img.$;
- if (img$.width > img$.height) { // landscape
- img$.height = Math.round(size * img$.height / img$.width);
+ if (e.sender.placeholder) {
+ e.sender.placeholder = false;
+ return;
+ };
+ var img$ = e.data.$.target;
+ if (img$.naturalWidth > img$.naturalHeight) { // landscape
+ img$.height = Math.round(size * img$.naturalHeight / img$.naturalWidth);