11var HostileList = {
22
33 clear : function ( ) {
4- log ( 'Clearing hostile list...' ) ;
4+ // log('Clearing hostile list...');
55 Data . hostiles = [ ] ;
66 Data . ui . hostiles_list . empty ( ) ;
77 } ,
88
99 clearBySystem : function ( systemId ) {
10- log ( 'Clearing system ' + systemId ) ;
10+ // log('Clearing system ' + systemId);
1111 Data . hostiles = $ . map ( Data . hostiles , function ( h ) { return h . systemId !== + systemId ? h : null ; } ) ;
1212 Data . ui . hostiles_list . empty ( ) ;
1313 } ,
1414
1515 addHostile : function ( hostileToAdd ) {
16- log ( 'Adding hostile: ' + hostileToAdd . characterName + '...' ) ;
16+ // log('Adding hostile: ' + hostileToAdd.characterName + '...');
1717 HostileList . removeHostile ( hostileToAdd . characterId ) ;
1818 Data . hostiles . push ( hostileToAdd ) ;
1919 } ,
2020
2121 fadeHostile : function ( hostileToFadeId ) {
2222 var hostileToFade = HostileList . findHostile ( hostileToFadeId ) ;
2323 if ( hostileToFade ) {
24- log ( 'Fading hostile: ' + hostileToFade . characterName + '...' ) ;
24+ // log('Fading hostile: ' + hostileToFade.characterName + '...');
2525 hostileToFade . is_faded = true ;
2626 }
2727 } ,
2828
2929 removeHostile : function ( hostileToRemoveId ) {
3030 var hostileToRemove = HostileList . findHostile ( hostileToRemoveId ) ;
3131 if ( hostileToRemove ) {
32- log ( 'Removing hostile: ' + hostileToRemove . characterName + '...' ) ;
32+ // log('Removing hostile: ' + hostileToRemove.characterName + '...');
3333 Data . hostiles . splice ( Data . hostiles . indexOf ( hostileToRemove ) , 1 ) ;
3434 }
3535 } ,
@@ -47,7 +47,7 @@ var HostileList = {
4747 } ,
4848
4949 renderSingleHostile : function ( hostile ) {
50- log ( 'Rendering hostile: ' + hostile . characterName + ' (single)...' ) ;
50+ // log('Rendering hostile: ' + hostile.characterName + ' (single)...');
5151 HostileList . addUiProperties ( hostile ) ;
5252 var existingHostileElement = Data . ui . hostiles_list . find ( '#hostile-' + hostile . characterId ) ;
5353 if ( existingHostileElement . length ) {
@@ -58,7 +58,7 @@ var HostileList = {
5858 } ,
5959
6060 sortAndRenderAll : function ( ) {
61- log ( 'Sorting and rendering all hostiles...' ) ;
61+ // log('Sorting and rendering all hostiles...');
6262
6363 Data . hostiles . sort ( function ( hostile1 , hostile2 ) {
6464 if ( hostile1 [ Data . state . hostileSortOrder . property ] < hostile2 [ Data . state . hostileSortOrder . property ] ) {
@@ -72,7 +72,7 @@ var HostileList = {
7272
7373 Data . ui . hostiles_list . empty ( ) ;
7474 Data . hostiles . forEach ( function ( hostile ) {
75- log ( 'Rendering hostile: ' + hostile . characterName + ' (batch)...' ) ;
75+ // log('Rendering hostile: ' + hostile.characterName + ' (batch)...');
7676 HostileList . addUiProperties ( hostile ) ;
7777 Data . ui . hostiles_list . append ( $ ( hostile . html ) ) ;
7878 } ) ;
0 commit comments