ternarylabs/porthole — pull request #10 by tablatom (2012-04-29 09:07:47+00:00)
Title: A more reliable way to check for browser support for postMessage.

Taken from http://modernizr.com/

In my testing

typeof window.postMessage

returns 'object' in IE8

!!window.postMessage gives a simple true/false