- this._updateDisplayStyle();
- },
- _updateDisplayStyle: function() {
- var displayStyle = getDisplayStyle(this.getWlxmlTag(), this.getWlxmlClass());
- this.dom().css('display', displayStyle);
- this._container().css('display', displayStyle);
+ if(!this.__updatingWlxml)
+ this._updateWlxmlManager();
+ },
+ setWlxml: function(params) {
+ this.__updatingWlxml = true;
+ if(params.tag !== undefined)
+ this.setWlxmlTag(params.tag);
+ if(params.klass !== undefined)
+ this.setWlxmlClass(params.klass);
+ this._updateWlxmlManager();
+ this.__updatingWlxml = false;
+ },
+ _updateWlxmlManager: function() {
+ var manager = wlxmlManagers.getFor(this);
+ this.data('_wlxmlManager', manager);
+ manager.setup();