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:
- <script>
- $(document).ready(function() {
$(document).not("#test").click(function() {
alert("clicked");
});
});
- </script>
<div id="test" style="background-color:#000;color:#fff;height:200px;width:200px;">hello</div>
<p>click here somewhere</p>
Any reason why this would not work anymore?