if search view contains only synchronously-initialized widgets, 'self.ready.resolve()' is called before 'self' is set since 'self' is set *after* the $.when call
move 'self'-setting to the top of the function, just in case
bzr revid: xmo@openerp.com-20110725091049-q5lt2sgbfawphiuh