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

January 25, 2006

Netflix Queue Manager bug fix

Category: Netflix,Software — 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.

• • •

No Comments

No comments yet.

Comments RSS

Sorry, the comment form is closed at this time.