Add JSCS rules and clean code.

This commit is contained in:
Lars Jung 2015-04-12 23:23:05 +02:00
parent 1623d0f60a
commit f0912f9e9d
26 changed files with 290 additions and 103 deletions

View file

@ -146,7 +146,7 @@ modulejs.define('ext/preview', ['_', '$', 'core/settings', 'core/resource', 'cor
function setIndex(idx, total) {
if (_.isNumber(idx)) {
$('#pv-bar-idx').text('' + idx + (_.isNumber(total) ? '/' + total : '')).show();
$('#pv-bar-idx').text(String(idx) + (_.isNumber(total) ? '/' + String(total) : '')).show();
} else {
$('#pv-bar-idx').text('').hide();
}