From 80ce9ce601dca057c30bcaccdc3ea0057df656ba Mon Sep 17 00:00:00 2001 From: "Brain, Daniel(dbrain)" Date: Fri, 13 May 2016 11:18:58 -0700 Subject: [PATCH] Update README.md --- README.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/README.md b/README.md index 4727455c..49dfaa8f 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,6 @@ This also allows cross-domain post messages between two different windows (not j ## Example ```javascript - // In one window postRobot.on('getCart', function(err, data, callback) { @@ -45,19 +44,10 @@ postRobot.send(window, 'getCart', function(err, data) { ## One-off listener ```javascript - -// In one window - postRobot.once('init', function(err, data, callback) { console.log('init!!'); return callback(); }); - -// In another window - -postRobot.send(window, 'init', function(err, data) { - console.log('init done'); -}); ``` ## IE9+