function _postMessage(message, callback) {
            var id = genID();
            message.id = id;

            // Store callback ready for post message event lookup
            if (callback) {
                _postMessageCallbacks[id] = callback;
            }

            window.parent.postMessage(JSON.stringify(message), '*');
        }
/**
         * Send message to parent page and store callback ref if needed.
         * @param {oject} message Message to send to parent page.
         * @param {function} callback (optional) Func. to call upon return msg.
         */
Send message to parent page and store callback ref if needed.
@param {oject} message Message to send to parent page.
@param {function} callback (optional) Func. to call upon return msg.
Send message to parent page and store callback ref if needed . @param { oject } message Message to send to parent page . @param { function } callback ( optional ) Func . to call upon return msg .
function _postMessage(message, callback) {
            var id = genID();
            message.id = id;
            if (callback) {
                _postMessageCallbacks[id] = callback;
            }
            window.parent.postMessage(JSON.stringify(message), '*');
        }
function _postMessage ( message , callback ) { var id = genID ( ) ; message . id = id ; if ( callback ) { _postMessageCallbacks [ id ] = callback ; } window . parent . postMessage ( JSON . stringify ( message ) , '*' ) ; }
Send message to parent page and store callback ref if needed.
Send message to parent page and store callback ref if needed .
// Store callback ready for post message event lookup