[IMP] added minor feature in Widget to ease development

bzr revid: nicolas.vanhoren@openerp.com-20130819092408-rdi91pokwuuy3f5e
This commit is contained in:
niv-openerp
2013-08-19 11:24:08 +02:00
parent 829ea61223
commit a0bac10130
@@ -761,6 +761,8 @@ openerp.Widget = openerp.Class.extend(openerp.PropertiesMixin, {
* @returns {jQuery} selector match
*/
$: function(selector) {
if (selector === undefined)
return this.$el;
return this.$el.find(selector);
},
/**