diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-07-25 12:07:49 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-07-25 12:07:49 +0200 |
| commit | 42e493e73efd603002feb92703a82f34c6bc6aea (patch) | |
| tree | 32a49385764688e013f12d849231996c9d8f0358 /addons/web/static/src/js/coresetup.js | |
| parent | b105770bbc0f545a4dfd0482b5b310f534fc1033 (diff) | |
Added Gruntfile with jshint and corrected most js errors
bzr revid: nicolas.vanhoren@openerp.com-20130725100749-0i82gf3k3nvt4r44
Diffstat (limited to 'addons/web/static/src/js/coresetup.js')
| -rw-r--r-- | addons/web/static/src/js/coresetup.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/coresetup.js b/addons/web/static/src/js/coresetup.js index c9c6f82a98d..b3adea81a60 100644 --- a/addons/web/static/src/js/coresetup.js +++ b/addons/web/static/src/js/coresetup.js @@ -250,7 +250,7 @@ instance.web.Session = instance.web.JsonRPC.extend( /** @lends instance.web.Sess continue; instance[mod] = {}; // init module mod - if(instance._openerp[mod] != undefined) { + if(instance._openerp[mod] !== undefined) { instance._openerp[mod](instance,instance[mod]); this.module_loaded[mod] = true; } @@ -585,7 +585,7 @@ instance.web.qweb.preprocess_node = function() { case Node.ELEMENT_NODE: // Element var attr, attrs = ['label', 'title', 'alt', 'placeholder']; - while (attr = attrs.pop()) { + while ((attr = attrs.pop())) { if (this.attributes[attr]) { this.attributes[attr] = instance.web._t(this.attributes[attr]); } |
