var serialize = Annotations.Annotation.prototype.serialize;
Annotations.Annotation.prototype.serialize = function() {
var el = serialize.apply(this, arguments);
if (this.myCustomAttribute) {
el.setAttribute('attribute-name', this.myCustomAttribute);
}
return el;
};
var deserialize = Annotations.Annotation.prototype.deserialize;
Annotations.Annotation.prototype.deserialize = function(el) {
deserialize.apply(this, arguments);
this.myCustomAttribute = el.getAttribute('attribute-name');
return el;
};