Fix minor style errors

And keep it that way, by making jscs config more opinionated.

// FREEBIE
This commit is contained in:
lilia 2016-02-17 17:08:50 -08:00
parent b09cb228f7
commit 173e037fa6
17 changed files with 97 additions and 38 deletions

View file

@ -231,7 +231,7 @@
},
replace_colons: function(str) {
return str.replace(emoji.rx_colons, function(m){
return str.replace(emoji.rx_colons, function(m) {
var idx = m.substr(1, m.length-2);
var val = emoji.map.colons[idx];
if (val) {

View file

@ -250,7 +250,9 @@
},
openDropped: function(e) {
if (e.originalEvent.dataTransfer.types[0] != 'Files') return;
if (e.originalEvent.dataTransfer.types[0] != 'Files') {
return;
}
e.stopPropagation();
e.preventDefault();
@ -260,7 +262,9 @@
},
showArea: function(e) {
if (e.originalEvent.dataTransfer.types[0] != 'Files') return;
if (e.originalEvent.dataTransfer.types[0] != 'Files') {
return;
}
e.stopPropagation();
e.preventDefault();
@ -268,7 +272,9 @@
},
hideArea: function(e) {
if (e.originalEvent.dataTransfer.types[0] != 'Files') return;
if (e.originalEvent.dataTransfer.types[0] != 'Files') {
return;
}
e.stopPropagation();
e.preventDefault();

View file

@ -74,7 +74,9 @@
// TODO: css animation or error notification
errors.removeClass('error');
setTimeout(function(){ errors.addClass('error'); }, 300);
setTimeout(function() {
errors.addClass('error');
}, 300);
return;
}

View file

@ -57,7 +57,7 @@
this.$el.closest('body').append(dialog.el);
}.bind(this));
},
i18n_with_link: function(message, href){
i18n_with_link: function(message, href) {
var attrs = 'class="link" href="' + encodeURI(href) + '" target="_blank"';
return i18n(message, attrs);
}