From 57eb7601d868f578419e489cf447297d2d8952d4 Mon Sep 17 00:00:00 2001 From: carl sednaoui Date: Mon, 12 May 2014 22:18:07 -0400 Subject: [PATCH] Address dummy object issue. Close #30 --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e6210e8..04676f1 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ ouibounce(document.getElementById('ouibounce-modal'), { }); ``` -### OuiBounce API +### Ouibounce API If you save the object returned by the `ouibounce` function, you get access to a small public API. Use this API to `fire` or `disable` OuiBounce on demand. @@ -129,6 +129,9 @@ modal.fire(); // fire the ouibounce event modal.disable() // disable ouibounce, it will not fire on page exit ``` +### Using OuiBounce with other libraries +If you want to use this library with other plugins — such as [Vex](http://github.hubspot.com/vex/docs/welcome/) — you can create a blank dummy object, then place the vex modal code in the callback. See #[30](/issues/30) for discussion. + ### Miscellaneous - This library provides no guarantees.