Skip to content

Commit

Permalink
Stop writing JavaScript like Perl!
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipadsmith committed Mar 20, 2015
1 parent 9bad91a commit bcbc288
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/js/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ $(document).ready(function() {
var last = builders.pop();
var count = result.count;
$("#builder-count").text(FormatNumberBy3(count, ".", ","));
if (builders >= 1) {
if (builders.length >= 1) {
$.each(builders, function(index, c) {
$('#builder-list ul').append('<li id="' + index + '">' + c.first_name + ' ' + c.last_name + '</li>');
});
Expand Down
2 changes: 1 addition & 1 deletion ui/js/widget.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bcbc288

Please sign in to comment.