From 42e493e73efd603002feb92703a82f34c6bc6aea Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Thu, 25 Jul 2013 12:07:49 +0200 Subject: Added Gruntfile with jshint and corrected most js errors bzr revid: nicolas.vanhoren@openerp.com-20130725100749-0i82gf3k3nvt4r44 --- addons/web/static/src/js/data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src/js/data.js') 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} */ 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(); -- cgit v1.2.3