Forbid trailing spaces

This commit is contained in:
Maxime Quandalle 2015-12-30 16:46:36 +01:00
parent 6dc7404f23
commit 0833a22742
2 changed files with 2 additions and 1 deletions

View file

@ -28,6 +28,7 @@ rules:
no-multiple-empty-lines: 2
no-nested-ternary: 2
no-spaced-func: 2
no-trailing-spaces: 2
operator-linebreak: 2
quotes: [2, single]
semi-spacing: 2

View file

@ -22,7 +22,7 @@ Template.attachmentsGalery.events({
},
'click .js-preview-image'(evt) {
Popup.open('previewAttachedImage').call(this, evt);
// when multiple thumbnails, if click one then another very fast,
// when multiple thumbnails, if click one then another very fast,
// we might get a wrong width from previous img.
// when popup reused, onRendered() won't be called, so we cannot get there.
// here make sure to get correct size when this img fully loaded.