@Anywhere throwing L.contentWindow is null


While using the @Anywhere library, I ran into an issue where “L.contentWindow is null” errors would show up in the JS error console when performing certain actions. Here is a small test case that will illustrate the problem. I’ve been able to reproduce the issue using the attached code snippet on both Firefox 3.x and Chrome.