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/data.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/data.js')
| -rw-r--r-- | addons/web/static/src/js/data.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js index 679afe77bcd..79ec160eb70 100644 --- a/addons/web/static/src/js/data.js +++ b/addons/web/static/src/js/data.js @@ -100,7 +100,7 @@ instance.web.Query = instance.web.Class.extend({ * @returns {jQuery.Deferred<Number>} */ count: function () { - if (this._count != undefined) { return $.when(this._count); } + if (this._count !== undefined) { return $.when(this._count); } return this._model.call( 'search_count', [this._filter], { context: this._model.context(this._context)}); @@ -747,7 +747,7 @@ instance.web.DataSetSearch = instance.web.DataSet.extend({ }); }, size: function () { - if (this._length != null) { + if (this._length !== null) { return this._length; } return this._super(); |
