diff options
| author | Fabien Meghazi <fme@openerp.com> | 2011-11-09 15:59:02 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2011-11-09 15:59:02 +0100 |
| commit | 5a0a8c595b0c8529f0d4540a587b99af9323fbf7 (patch) | |
| tree | e685167623d278a2015e9734811e0d96d5d19e93 /addons/web/static/src/js/boot.js | |
| parent | 93ecb97b48cfb4e245fe8185ac2d33b91b993660 (diff) | |
[ADD] Added <instance>.log() ( -> console.log() in debug mode)
bzr revid: fme@openerp.com-20111109145902-cs2ivnki2t4tlcfm
Diffstat (limited to 'addons/web/static/src/js/boot.js')
| -rw-r--r-- | addons/web/static/src/js/boot.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/web/static/src/js/boot.js b/addons/web/static/src/js/boot.js index 5fba5f4d8d4..58dcd922ea9 100644 --- a/addons/web/static/src/js/boot.js +++ b/addons/web/static/src/js/boot.js @@ -65,6 +65,11 @@ openerp.web = function(instance) { openerp.web[files[i]](instance); } } + instance.log = function() { + if (instance.connection.debug && window.console) { + console.log.apply(console, arguments); + } + } }; // vim:et fdc=0 fdl=0 foldnestmax=3 fdm=syntax: |
