From fe062e1c6f05efe64a050cb99e3792a2587e43fa Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 29 Jun 2011 15:58:49 +0200 Subject: [PATCH] [IMP] use type void instead of null for jsdoc annotations Void is not a real type, but neither is null (it's Null) and intellij whines that it does not understand null bzr revid: xmo@openerp.com-20110629135849-9p1qyn9s6n32dnzv --- addons/base/static/src/js/list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/base/static/src/js/list.js b/addons/base/static/src/js/list.js index 31c16b98fc1..62bedf8784d 100644 --- a/addons/base/static/src/js/list.js +++ b/addons/base/static/src/js/list.js @@ -36,7 +36,7 @@ openerp.base.ListView = openerp.base.View.extend( /** @lends openerp.base.ListVi * @param {Boolean} [options.selectable=true] determines whether view rows are selectable (e.g. via a checkbox) * @param {Boolean} [options.header=true] should the list's header be displayed * @param {Boolean} [options.deletable=true] are the list rows deletable - * @param {null|String} [options.addable="New"] should the new-record button be displayed, and what should its label be. Use ``null`` to hide the button. + * @param {void|String} [options.addable="New"] should the new-record button be displayed, and what should its label be. Use ``null`` to hide the button. * @param {Boolean} [options.sortable=true] is it possible to sort the table by clicking on column headers * @param {Boolean} [options.reorderable=true] is it possible to reorder list rows * @@ -232,7 +232,7 @@ openerp.base.ListView = openerp.base.View.extend( /** @lends openerp.base.ListVi * If the index is null, ``switch_to_record`` asks for the creation of a * new record. * - * @param {Number|null} index the record index (in the current dataset) to switch to + * @param {Number|void} index the record index (in the current dataset) to switch to * @param {String} [view="form"] the view type to switch to */ select_record:function (index, view) {