Skip to content

Commit

Permalink
fix issue where config entries is a sparse array
Browse files Browse the repository at this point in the history
  • Loading branch information
Mac Angell committed Mar 10, 2014
1 parent e15e3f2 commit 7c3a5a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/index.js
Expand Up @@ -27,7 +27,8 @@ var _ = require('underscore'),
}
var prop, associationPriority,
config = _.object(options.names, []),
groups = _.groupBy(options.entries, function(entry) { return entry.name; });
entries = _.without(options.entries, undefined, null),
groups = _.groupBy(entries, function(entry) { return entry.name; });

associationPriority = {
applications: (options.associationPriority === 'app') ? 2 : 1,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -4,7 +4,7 @@
"contributors": [
"Mac Angell <mac.ang311@gmail.com>"
],
"version": "0.0.2",
"version": "0.0.3",
"dependencies": {
"underscore": "1.x.x"
},
Expand Down

0 comments on commit 7c3a5a1

Please sign in to comment.