summaryrefslogtreecommitdiff
path: root/addons/base/static/src/js/core.js
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2011-08-01 11:18:25 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2011-08-01 11:18:25 +0200
commitaeaf9897d5d10a6cb34ef7dccbca41c3391800e4 (patch)
treeeff1523107157821d1aeca6cc3491503380aa55c /addons/base/static/src/js/core.js
parent39cfb0fe98967946fed4a96652cc94d43ffdd879 (diff)
[imp] corrected some doc
bzr revid: nicolas.vanhoren@openerp.com-20110801091825-ge0ha30u9v5707zb
Diffstat (limited to 'addons/base/static/src/js/core.js')
-rw-r--r--addons/base/static/src/js/core.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/addons/base/static/src/js/core.js b/addons/base/static/src/js/core.js
index 790542be7e4..7623ec8d263 100644
--- a/addons/base/static/src/js/core.js
+++ b/addons/base/static/src/js/core.js
@@ -357,7 +357,7 @@ openerp.base.SessionAware = openerp.base.Class.extend({
*
* Widget also extends SessionAware for ease of use.
*
- * Guide to create implementations of this class:
+ * Guide to create implementations of the Widget class:
* ==============================================
*
* Here is a sample child class:
@@ -365,7 +365,7 @@ openerp.base.SessionAware = openerp.base.Class.extend({
* MyWidget = openerp.base.Widget.extend({
* // the name of the QWeb template to use for rendering
* template: "MyQWebTemplate",
- * // identifier prefix, useful to put an obvious one for debugging
+ * // identifier prefix, it is useful to put an obvious one for debugging
* identifier_prefix: 'my-id-prefix-',
*
* init: function(parent) {
@@ -373,7 +373,8 @@ openerp.base.SessionAware = openerp.base.Class.extend({
* // stuff that you want to init before the rendering
* },
* start: function() {
- * // stuff you want to make after the rendering, `this.$element` holds a value
+ * this._super();
+ * // stuff you want to make after the rendering, `this.$element` holds a correct value
* this.$element.find(".my_button").click(/* an example of event binding * /);
*
* // if you have some asynchronous operations, it's a good idea to return