- 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();
- },
- is: function(what) {
- if(what === 'list' && _.contains(['list.items', 'list.items.enum'], this.getWlxmlClass())) {
- return true;
- }
- return false;