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+