-
Notifications
You must be signed in to change notification settings - Fork 13
bleat.startScan updates #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dist/api.classic.js
Outdated
| adapter = definition; | ||
| }, | ||
| startScan: function(serviceUUIDs, foundFn, completeFn, errorFn) { | ||
| startScan: function(serviceUUIDs, foundFn, completeFn, errorFn, options) { |
There was a problem hiding this comment.
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) There was a problem hiding this comment.
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!
|
@thegecko What is the best method for splitting into two pull requests? |
|
@mikaelkindborg Nevermind :) |
|
@thegecko Thanks for merging! |
Fixed callback function references in bleat.startScan, fixes #46
Added options object to bleat.startScan with option allowDuplicates, resolves #44