From 913a09dcadee66b54777cb6b691713b0a8cfb535 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Sat, 13 Apr 2013 15:23:36 +0200 Subject: [PATCH] use === and !== instead of == and != --- .../js/repository/sonia.repository.infopanel.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.infopanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.infopanel.js index 01f4bdffa9..27e950f2d8 100644 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.infopanel.js +++ b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.infopanel.js @@ -47,7 +47,7 @@ Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, { initComponent: function(){ var contact = ''; - if ( this.item.contact != null ){ + if ( this.item.contact !== null ){ contact = String.format(this.mailTemplate, this.item.contact); } @@ -92,7 +92,7 @@ Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, { style: 'font-size: 12px' }, items: items - } + }; this.modifyDefaultConfig(config); @@ -106,7 +106,7 @@ Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, { getRepositoryUrlWithUsername: function(){ var uri = Sonia.repository.createUrlFromObject(this.item); - if ( state.user.name != 'anonymous' ){ + if ( state.user.name !== 'anonymous' ){ var index = uri.indexOf("://"); if ( index > 0 ){ index += 3; @@ -120,7 +120,7 @@ Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, { var text = null; for ( var i=0; i