Skip to content

Commit 2243755

Browse files
gabelewpotench
authored andcommitted
Fix slotOnload to use the correct on event name (#75)
1 parent 08a9b1c commit 2243755

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/api/ReactGPT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A React component which renders [GPT](https://support.google.com/dfp_sb/answer/1
2525
- `onSlotRenderEnded`(optional) - An optional event handler function for `googletag.events.SlotRenderEndedEvent`.
2626
- `onImpressionViewable`(optional) - An optional event handler function for `googletag.events.ImpressionViewableEvent`.
2727
- `onSlotVisibilityChanged`(optional) - An optional event handler function for `googletag.events.slotVisibilityChangedEvent`.
28-
- `onSlotLoad`(optional) - An optional event handler function for `googletag.events.SlotOnloadEvent`.
28+
- `onSlotOnload`(optional) - An optional event handler function for `googletag.events.SlotOnloadEvent`.
2929
- `renderWhenViewable`(optional) - An optional flag to indicate whether an ad should only render when it's fully in the viewport area.
3030
- `viewableThreshold`(optional) - An optional number to indicate how much percentage of an ad area needs to be in a viewable area before rendering. Acceptable range is between `0` and `1`.
3131
- `onScriptLoaded`(optional) - An optional call back function to notify when the script is loaded.

src/Bling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ class Bling extends Component {
158158
/**
159159
* An optional event handler function for `googletag.events.SlotOnloadEvent`.
160160
*
161-
* @property onSlotLoad
161+
* @property onSlotOnload
162162
*/
163-
onSlotLoad: PropTypes.func,
163+
onSlotOnload: PropTypes.func,
164164
/**
165165
* An optional flag to indicate whether an ad should only render when it's fully in the viewport area.
166166
*

0 commit comments

Comments
 (0)