Skip to content

fix bug where hooked functions w/ no hooks weren't ran immediately#2115

Merged
jaiminpanchal27 merged 1 commit intoprebid:masterfrom
rubicon-project:run-hookless-immediate
Feb 8, 2018
Merged

fix bug where hooked functions w/ no hooks weren't ran immediately#2115
jaiminpanchal27 merged 1 commit intoprebid:masterfrom
rubicon-project:run-hookless-immediate

Conversation

@snapwich
Copy link
Collaborator

@snapwich snapwich commented Feb 7, 2018

Type of change

  • Bugfix

Description of change

I had put this shortcut for running hooked functions immediately if they didn't have any additional hooks applied, however it wasn't working correctly because a hooked function w/ no hooks has a length of 1 (the hooked function itself), not 0.

This removes one extra func invocation for non-hooked functions, so a slight performance increase and improves debuggability.

@jaiminpanchal27 jaiminpanchal27 merged commit f73db9e into prebid:master Feb 8, 2018
Millerrok pushed a commit to Vertamedia/Prebid.js that referenced this pull request Feb 12, 2018
* 'master' of https://github.com/prebid/Prebid.js: (51 commits)
  Update maintainer email (prebid#2132)
  Replace event string with constant (prebid#2128)
  Add adapter for IAS (prebid#2056)
  Fix sovrn dealid (prebid#2119)
  Added support for NURL and ADM as backup (prebid#2112)
  fix bug where hooked functions w/ no hooks weren't ran immediately (prebid#2115)
  Increment pre version
  Prebid 1.3.1 Release
  Omit app and device if not present rather than send false (prebid#2116)
  Increment pre version
  Prebid.js 1.3.0 Release
  Unit test fixes (prebid#2111)
  must explicitly list pre1api for it to be included in build (prebid#2097)
  adkernel adapter additional bid parameters (prebid#2105)
  removing userSync (prebid#2032)
  33across Bid Adapter: Bugfix + Refactor (prebid#2024)
  Port calling order fix to 1.x  (prebid#2067)
  Update adform adapter request (prebid#2107)
  Serverbid Bid Adapter: getUserSyncs and new adsizes (prebid#2106)
  Add hfa and pv parameter to request payload (prebid#2109)
  ...
@robertrmartinez robertrmartinez deleted the run-hookless-immediate branch July 5, 2023 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments