sdk/src/third-party/easyXDM/easyXDM.js
function(event){  
                    if (event.data == config.channel + "-ready") {
                        // replace the eventlistener
                        callerWindow = ("postMessage" in frame.contentWindow) ? frame.contentWindow : frame.contentWindow.document;
                        un(window, "message", waitForReady);
                        on(window, "message", _window_onMessage);
                        setTimeout(function(){
                            pub.up.callback(true);
                        }, 0);
                    }
                }
function(event){  
                    if (event.data == config.channel + "-ready") {
                        // replace the eventlistener
                        callerWindow = ("postMessage" in frame.contentWindow) ? frame.contentWindow : frame.contentWindow.document;
                        un(window, "message", waitForReady);
                        on(window, "message", _window_onMessage);
                        setTimeout(function(){
                            pub.up.callback(true);
                        }, 0);
                    }
                }
function ( event ) { if ( event . data == config . channel + "-ready" ) { // replace the eventlistener callerWindow = ( "postMessage" in frame . contentWindow ) ? frame . contentWindow : frame . contentWindow . document ; un ( window , "message" , waitForReady ) ; on ( window , "message" , _window_onMessage ) ; setTimeout ( function ( ) { pub . up . callback ( true ) ; } , 0 ) ; } }
add the event handler for listening
add the event handler for listening