+ setTag: function(tagName) {
+ var node = this.document.createElementNode({tagName: tagName}),
+ oldTagName = this.getTagName();
+
+ this.getAttrs().forEach(function(attribute) {
+ node.setAttr(attribute.name, attribute.value, true);
+ });
+ node.setData(this.getData());
+
+ this._$.replaceWith(node._$);
+ this._setNativeNode(node._$[0]);
+ this.triggerChangeEvent('nodeTagChange', {oldTagName: oldTagName, newTagName: this.getTagName()});
+ },
+