egnyte/jquery-ui — comment on commit fff8147ab0d55251136a09a7c7d533af4001d462
File:  line 0
By stevemayhew:

The issue occurs because $.attr(name, value) returns undefined when the 'this.element.attr( 'id' )' is undefined, because jQuery think's its an attr() get not a set.

Reversing the order of the call chain should have no affect on the functionality.