Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented May 9, 2016

Fixed callback function references in bleat.startScan, fixes #46

Added options object to bleat.startScan with option allowDuplicates, resolves #44

@thegecko
Copy link
Owner

Could you split this into 2 separate PRs fixing #44 and #46 individually?

adapter = definition;
},
startScan: function(serviceUUIDs, foundFn, completeFn, errorFn) {
startScan: function(serviceUUIDs, foundFn, completeFn, errorFn, options) {
Copy link
Owner

@thegecko thegecko May 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO an options object should be used to replace all args. Can you stick with arguments for this addition and just have an allowDuplicates argument?

e.g.:

startScan: function(serviceUUIDs, foundFn, completeFn, errorFn, allowDuplicates) 

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, great will update the pull request!

@ghost
Copy link
Author

ghost commented May 15, 2016

@thegecko What is the best method for splitting into two pull requests?

@thegecko thegecko merged commit 76b99c4 into thegecko:master May 15, 2016
@thegecko
Copy link
Owner

@mikaelkindborg Nevermind :)

@ghost
Copy link
Author

ghost commented May 15, 2016

@thegecko Thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant