-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fixing the issue introduced in #3845 for rubi analytics adapter #3996
Conversation
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.
Remove clone
function and update the clone function call to use utils.deepClone(obj)
@idettman Thanks, updated both our test adapters to use utils.deepClone |
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.
LGTM
…prebid#3996) * Fixing the issue introduced in prebid#3845 for rubi analytics adapter * using utils.deepClone instead of custom clone
…prebid#3996) * Fixing the issue introduced in prebid#3845 for rubi analytics adapter * using utils.deepClone instead of custom clone
…prebid#3996) * Fixing the issue introduced in prebid#3845 for rubi analytics adapter * using utils.deepClone instead of custom clone
Type of change
Description of change
The pr introduced here https://github.com/prebid/Prebid.js/pull/3845/files brought out an issue in the rubi analytics adapter.
Since we were not calling the function with the bid obj attached, it was resulting in
this.cpm
to throw an exception sincethis
would not be defined with how we are calling it.This PR fixes this issue and adds a unit test to prevent this from happening again