Polyglot Language Switcher doesn't work with JQuery 1.9.1
<p>PolyglotLanguageSwitcher is a nice module designed to work on JQuery 1.7 and unfortunately it doesn't work on JQuery 1.9.1. I'm not pro at all with JQuery, that's why I'm asking here..</p>

<p>Here's the code (it's not so long) : <a href="https://github.com/ixtendo/Polyglot-Language-Switcher/blob/master/js/jquery.polyglot.language.switcher.js" rel="nofollow">https://github.com/ixtendo/Polyglot-Language-Switcher/blob/master/js/jquery.polyglot.language.switcher.js</a></p>

<p>Here's the error thrown by JQuery : </p>

<blockquote>
  <p>TypeError: document is null</p>
</blockquote>

<pre><code>safeFrag = document.createDocumentFragment();
</code></pre>

<p>The developper isn't responding and I think this module is the best one to do a language switcher ! Sad if it's not working anymore.</p>

<p>Thanks !</p>

<p>---------------------------- Edit 1
Maybe is it related to the call ?</p>

<pre><code>$(document).ready(function() {
    $(this).polyglotLanguageSwitcher();
});
</code></pre>

<p>---------------------------- Edit 2</p>

<p>Solved ! Thanks all. I'm too dumb =(</p>

<p>Just had to replace "$(this)." to "$('#myDiv')"</p>
