Skip to content

Commit

Permalink
Updated parameter for init method in documentation and sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
razaibi committed Oct 6, 2020
1 parent 875363c commit a3be6d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,11 @@ wuObject.init();
You could invoke a custom function once Wirup completes intialization. Use the below code to do the same.

```js
wuObject.init(yourOwnCustomFunction);
wuObject.init('yourOwnCustomFunction');
```

`Note that the custom function name is passed as a string here.`

If you choose to invoke your custom function, make sure to define it.


Expand Down
2 changes: 1 addition & 1 deletion sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
//If you would like to invoke a function
//after Wirup Initializes
//replace the above call with this:
//wuObject.init(yourOwnCustomFunction);
//wuObject.init('yourOwnCustomFunction');
// Also uncomment the below lines.

/*
Expand Down

0 comments on commit a3be6d6

Please # to comment.