Problem with .not selector between 1.3.2 and 1.4.2 ?

Problem with .not selector between 1.3.2 and 1.4.2 ?

After upgrading from 1.3.2 to 1.4.2 I noticed a portion of my application did not function the same way. Clicking outside of an open div would close that div.

I've made a simple test case to illustrate:

  1. <script>
  2. $(document).ready(function({

            $(document).not("#test").click(function({
                alert("clicked");
            });
        });







  3. </script>

  4. <div id="test" style="background-color:#000;color:#fff;height:200px;width:200px;">hello</div>
    <p>click here somewhere</p>



JSBin (jQuery 1.3.2) -  http://jsbin.com/areri3

JSBin (jQuery 1.4.2) -  http://jsbin.com/axudo3

Any reason why this would not work anymore?