Skip to content

Commit

Permalink
Fix README (issue #7)
Browse files Browse the repository at this point in the history
The docs had the parameters for listeners reversed:
    listener(message, model) instead of the correct listener(model, message).
  • Loading branch information
bnkuhn committed Feb 23, 2017
1 parent d2f737c commit ecb3af4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -374,7 +374,7 @@ immediately whenever the dataLayer has been updated, which is a key advantage of
queue approach.

```js
function listener(message, model) {
function listener(model, message) {
// Message has been pushed.
// The helper has merged it onto the model.
// Now use the message and the updated model to do something.
Expand All @@ -388,7 +388,7 @@ opt to process message that were pushed onto the dataLayer in the past. This can
passing true as the third parameter in the DataLayerHelper constructor.

```js
function listener(message, model) {
function listener(model, message) {
// Message has been pushed.
// The helper has merged it onto the model.
// Now use the message and the updated model to do something.
Expand Down

0 comments on commit ecb3af4

Please sign in to comment.