for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
Admin.flashMessage = {
Admin
/** global: Admin */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
show: function(type, message) {
var flash = $('#flash-' + type);
flash.find('.flash-content').html(message);
flash.show();
},
hide: function(type) {
if(type) {
$('#flash-' + type).hide();
return;
}
$('.js-flash').hide();
};
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.