[imp] renammed tag_name
bzr revid: nicolas.vanhoren@openerp.com-20120229110428-es0fof2fxxa5qzd5
This commit is contained in:
parent
ff248a97cf
commit
2da2983533
|
@ -333,7 +333,7 @@ nova = (function() {
|
|||
* Tag name when creating a default $element.
|
||||
* @type string
|
||||
*/
|
||||
tag_name: 'div',
|
||||
tagName: 'div',
|
||||
/**
|
||||
* Constructs the widget and sets its parent if a parent is given.
|
||||
*
|
||||
|
@ -350,7 +350,7 @@ nova = (function() {
|
|||
*/
|
||||
init: function(parent) {
|
||||
lib.GetterSetterMixin.init.call(this);
|
||||
this.$element = $(document.createElement(this.tag_name));
|
||||
this.$element = $(document.createElement(this.tagName));
|
||||
|
||||
this.setParent(parent);
|
||||
},
|
||||
|
|
|
@ -937,7 +937,7 @@ openerp.web.OldWidget = openerp.web.Widget.extend({
|
|||
this.element_id = element_id;
|
||||
this.element_id = this.element_id || _.uniqueId('widget-');
|
||||
var tmp = document.getElementById(this.element_id);
|
||||
this.$element = tmp ? $(tmp) : $(document.createElement(this.tag_name));
|
||||
this.$element = tmp ? $(tmp) : $(document.createElement(this.tagName));
|
||||
},
|
||||
render_element: function() {
|
||||
var rendered = this.render();
|
||||
|
|
Loading…
Reference in New Issue