diff options
| author | Antony Lesuisse <al@openerp.com> | 2012-05-21 17:35:30 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2012-05-21 17:35:30 +0200 |
| commit | ca6283de8efc7d790fe1d6d843ec264777b3ae47 (patch) | |
| tree | 5e120d4011319c8db321b342515461edf43a5343 /addons/web/static/src/js/corelib.js | |
| parent | 7bc2664663d637bcbb56b6fd0c9bc557290511aa (diff) | |
[IMP] Widget.$ shortcut
bzr revid: al@openerp.com-20120521153530-g3anzkkkhs75psk5
Diffstat (limited to 'addons/web/static/src/js/corelib.js')
| -rw-r--r-- | addons/web/static/src/js/corelib.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web/static/src/js/corelib.js b/addons/web/static/src/js/corelib.js index b30350a9502..93796ab4282 100644 --- a/addons/web/static/src/js/corelib.js +++ b/addons/web/static/src/js/corelib.js @@ -710,6 +710,12 @@ instance.web.Widget = instance.web.Class.extend(instance.web.WidgetMixin, { } }, /** + * Shortcut for $element.find() like backbone + */ + "$": function() { + return this.$element.find.apply(this.$element,arguments); + }, + /** * Informs the action manager to do an action. This supposes that * the action manager can be found amongst the ancestors of the current widget. * If that's not the case this method will simply return `false`. |
