Why is if ($(this) == clickedObject) not working?

Why is if ($(this) == clickedObject) not working?

i wrote

  1. $(document).ready(function ()
  2. {
  3.     var clickedObject;
  4.     $('.knob').mousedown(function ()
  5.     {
  6.         clickedObject = $(this);
  7.     });

  8.     $(".knob").mousemove(function (event)
  9.     {
  10.         if ($(this) == clickedObject)
  11.         {
  12.             console.log("test");
  13.         }
  14.     }
  15. });

It doesn't work, it doesn't recognise the two objects as being the same. When I log both $(this) object and the clickedObject to the console, they look pretty much exactly the same to me.

Am i missing something obvious here?