Hello,
I've probably found a strange bug in jQuery 1.2 and 1.2.1, which
creates high CPU usage.

To reproduce it just create site like this one:
 <html>
  <head>
          <script type="text/javascript" src="http://
jqueryjs.googlecode.com/files/jquery-1.2.1.pack.js"></script>
          <script type="text/javascript" src="http://dev.iceburg.net/
jquery/jqDnR/jqDnR.js"></script>
          <script type="text/javascript">
                  $(document).ready(function(){
                  $("#drawing").jqDrag();
                  });
          </script>
  </head>
  <body>

          <div style="position:relative;left:50px;top:
50px;display:block;background-color:red; width: 50px; height: 50px;"
id="drawing"/>
  </body>
</html>

or visit http://rwesolowski.jogger.pl/files/test-1-2.html .

Then drag and drop a few times the red box, and next just move mouse
around the site and watch CPU usage (it's note a problem with jqDnR
plugin, i've tested this with some others, and the result was the
same). When jQuery 1.1.4 is used everything is OK (check
http://rwesolowski.jogger.pl/files/test-1-1.html).

According to the Firebug mousemove event is not released after
dropping, and what's more on each  event jQuery calls extend() method.

Radek

Reply via email to