From 3b98700d9d17f5b4a9da6b9110fa962bae33148d Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 12 Sep 2011 14:38:52 +0200 Subject: [PATCH] [FIX] documentation of private Events mixin in ListView bzr revid: xmo@openerp.com-20110912123852-vj9u9n15l44t3wo0 --- addons/web/static/src/js/list.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/addons/web/static/src/js/list.js b/addons/web/static/src/js/list.js index 7ee762e06e5..ac5f947ff9a 100644 --- a/addons/web/static/src/js/list.js +++ b/addons/web/static/src/js/list.js @@ -1218,10 +1218,9 @@ openerp.web.ListView.Groups = openerp.web.Class.extend( /** @lends openerp.web.L }); /** - * @class - * @extends openerp.web.Class + * @mixin Events */ -var Events = { +var Events = /** @lends Events# */{ /** * @param {String} event event to listen to on the current object, null for all events * @param {Function} handler event handler to bind to the relevant event @@ -1274,8 +1273,7 @@ var Record = openerp.web.Class.extend(/** @lends Record# */{ * @constructs Record * @extends openerp.web.Class * - * @borrows Events#bind as this.bind - * @borrows Events#trigger as this.trigger + * @mixes Events * @param {Object} [data] */ init: function (data) { @@ -1342,8 +1340,7 @@ var Collection = openerp.web.Class.extend(/** @lends Collection# */{ * @constructs Collection * @extends openerp.web.Class * - * @borrows Events#bind as this.bind - * @borrows Events#trigger as this.trigger + * @mixes Events * @param {Array} [records] records to initialize the collection with * @param {Object} [options] */