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

@ -6,8 +6,8 @@ modulejs.define('ext/title', ['_', 'core/settings', 'core/event'], function (_,
function onLocationChanged(item) {
var labels = _.pluck(item.getCrumb(), 'label'),
title = labels.join(' > ');
var labels = _.pluck(item.getCrumb(), 'label');
var title = labels.join(' > ');
if (labels.length > 1) {
title = labels[labels.length - 1] + ' - ' + title;