Skip to content

Commit

Permalink
don't show empty event-types in the session view's sidebar see #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Asmuth committed Dec 28, 2011
1 parent e2e4769 commit 1526981
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pub/fnordmetric.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,9 @@ var FnordMetric = (function(){
success: function(_data){
var data = JSON.parse(_data);
$(data.types).each(function(i,v){
if(v.slice(0,5)!='_set_'){ addEventType(v,v); }
if((v.length > 0) && (v.slice(0,5)!='_set_')){
addEventType(v,v);
}
});
}
});
Expand Down

0 comments on commit 1526981

Please sign in to comment.