Skip to content

Commit

Permalink
Simplify settings defaulting code
Browse files Browse the repository at this point in the history
  • Loading branch information
maryrosecook committed Oct 12, 2013
1 parent 2ce9c70 commit 09f2af3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions andro.js
Expand Up @@ -22,10 +22,7 @@

// write exports to owner
if(behaviour.setup !== undefined) {
if(settings === undefined) {
settings = {};
}

settings = settings || {};
var exports = behaviour.setup(owner, owner.andro.eventer, settings);
for(var name in exports) {
if(owner[name] === undefined) {
Expand Down

0 comments on commit 09f2af3

Please sign in to comment.