Skip to content

Commit

Permalink
Fix slotOnload to use the correct on event name (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabelew authored and potench committed Mar 13, 2018
1 parent 08a9b1c commit 2243755
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/api/ReactGPT.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ A React component which renders [GPT](https://support.google.com/dfp_sb/answer/1
- `onSlotRenderEnded`(optional) - An optional event handler function for `googletag.events.SlotRenderEndedEvent`.
- `onImpressionViewable`(optional) - An optional event handler function for `googletag.events.ImpressionViewableEvent`.
- `onSlotVisibilityChanged`(optional) - An optional event handler function for `googletag.events.slotVisibilityChangedEvent`.
- `onSlotLoad`(optional) - An optional event handler function for `googletag.events.SlotOnloadEvent`.
- `onSlotOnload`(optional) - An optional event handler function for `googletag.events.SlotOnloadEvent`.
- `renderWhenViewable`(optional) - An optional flag to indicate whether an ad should only render when it's fully in the viewport area.
- `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`.
- `onScriptLoaded`(optional) - An optional call back function to notify when the script is loaded.
Expand Down
4 changes: 2 additions & 2 deletions src/Bling.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ class Bling extends Component {
/**
* An optional event handler function for `googletag.events.SlotOnloadEvent`.
*
* @property onSlotLoad
* @property onSlotOnload
*/
onSlotLoad: PropTypes.func,
onSlotOnload: PropTypes.func,
/**
* An optional flag to indicate whether an ad should only render when it's fully in the viewport area.
*
Expand Down

0 comments on commit 2243755

Please sign in to comment.