+ElementNode.prototype.transformations.register(transformations.createContextTransformation({
+ name: 'smartxml.setAttr2',
+ impl: function(args) {
+ this.prevAttr = this.getAttr(args.name);
+ this.setAttr(args.name, args.value);
+ },
+ undo: function(args) {
+ this.setAttr(args.name, this.prevAttr);
+ }
+}));
+