tildeio / MessageChannel.js

27 stars 3 forks source link

Support `MessageChannel._usePoly` rather than flipping a hardcoded flag #5

Open hjdivad opened 11 years ago

hjdivad commented 11 years ago

This will make the tests nicer too; we can always use poly in tests.

if( !root.MessageChannel || root.MessageChannel._usePoly)
hjdivad commented 11 years ago

btw why do we create self = this when we pass in the global object as root?

hjdivad commented 11 years ago

cc @Cyril-sf