It's actually trickier than you think. The problem is that a widget is not allowed to refer to itself because of inheritance. See http://bugs.jqueryui.com/ticket/9097