diff options
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(); |
