Some information that might be of use to someone, at discount prices.

January 25, 2006

Netflix Queue Manager bug fix

Category: Software, Netflix — badsegue @ 7:43 am

update

You may have noticed that the drag-n-drop capability was broken after 1/19/06. That’s when Netflix updated their domutils.js script. For some reason they extended the Array class with an append() method that just wraps the native push() method.

That change exposed a bug in the Tool Man library that supports the drag-n-drop features. The library had two instances where it used the for … in construct to iterate over array elements. This is incorrect, as this will iterate over not just the elements, but also any user-defined properties. So the append() method was now being iterated over, which promptly failed when the handler was given this unexpected object.

The problem is solved by using the Array length property to access the proper range of elements.

• • •

3 Comments

  1. So how do we update our code?

    Comment by Kevin — January 25, 2006 @ 4:32 pm
  2. Try it first and see if you are having the problem. If so, then a browser cache clearing will do the trick.

    The only exception is for people still using the ‘embedded’ greasemonkey version, that will require reinstalling the script. Check the main page if this applies to you.

    Comment by badsegue — January 26, 2006 @ 12:05 am
  3. Cool that works. I was using the ‘embedded’ greasemonkey version

    Comment by Kevin — January 26, 2006 @ 9:20 pm

Comments RSS

Sorry, the comment form is closed at this time.