[FIX] race condition introduced in nicolas.vanhoren@openerp.com-20110722154419-9g31mwfsuv67rjz3
[FIX] race condition introduced in nicolas.vanhoren@openerp.com-20110722154419-9g31mwfsuv67rjz3

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
gisce/openerp-web,MarkusTeufelberger/openerp-web,splbio/openerp-web,vnc-biz/openerp-web,gisce/openerp-web,MarkusTeufelberger/openerp-web,vnc-biz/openerp-web,vnc-biz/openerp-web,splbio/openerp-web,gisce/openerp-web,vnc-biz/openerp-web,splbio/openerp-web,MarkusTeufelberger/openerp-web